Eliminating assignments and variable syntax (accessors)

Stefan Matthias Aust sma at netsurf.de
Sun Aug 8 22:28:18 UTC 1999

[Indentation as statement continuation]

>There is the remaining problem of blocks.  Maybe allow blocks with 
>one statement to be inlined, and force blocks with multiple statements 
>to have a line per statement?

I don't see problems for a parser here.  When it detects a [, it knows that
it has to look for a ].  You can both write the block in one line or in the
next line - even not indented as the parser knows that there's still
something missing. Now if the block contains more than one statement, you
have to insert new lines.  

A statement like

true ifTrue: [false]

would be possible as for example

  ifTrue: [false]

or even


Stefan Matthias Aust  //  Bevor wir fallen, fallen wir lieber auf.

More information about the Squeak-dev mailing list