Re: ?"Hello"&-1

new topic     » goto parent     » topic index » view thread      » older message » newer message

In a tutorial, extraneous arguments is a pain--? is great for that reason.

In OE|Phix you have to show the dual nature of integers|characters--pp( is great for that reason.

The leading argument in puts( and print( is a ''slight nuisance''.

In a tutorial, this kind of output has to be emphasized:

? {65,66,67} 
pp( {65,66,67} ) 
puts(1, {65,66,67} ) 

{65,66,67} 
{65'A',66'B',67'C'} 
ABC 

In a conventional language, print seems to do it all. This gives the illusion that a conventional language is ''easy''.

Tutorial inspired ideas:

  • flip arguments
    • print( "hello", 1)
    • print( "hello", fn )
  • pp( needs positional arguments
    • pp( "hello", IntCh:=True )
  • ''ln'' suffix as in pasacal
    • puts(
    • putsln(
  • write( writeln( as a tutorial friendly cross between ? and pp(
  • output in OE|Phix has some dark corners that needs exploring

You can always create a butterfly effect for any change in a language.

be well
_tom

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu