Re: ?"Hello"&-1
- Posted by _tom (admin) Apr 05, 2021
- 707 views
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