Eliminating assignments and variable syntax (accessors)

Jarvis, Robert P. Jarvisb at timken.com
Wed Aug 11 21:09:16 UTC 1999


Also, if blocks are to be delimited by indentation how do you send a message
to a block?

Bob Jarvis
The Timken Company

> -----Original Message-----
> From:	Lex Spoon [SMTP:lex at cc.gatech.edu]
> Sent:	Wednesday, August 11, 1999 1:08 AM
> To:	squeak at cs.uiuc.edu
> Subject:	Re: Eliminating assignments and variable syntax (accessors)
> 
> Okay, but it doesn't seem fully in the spirit of syntax-via-indentation.
> After all, one of the main places python uses indentation is to note the
> start and end of a block, right?
> 
> So it might be cool to be able to do something like this:
> 
> 	x<3 
> 		ifTrue:
> 			y := y + 1
> 		ifFalse:
> 			z := z + 1
> 
> 
> But this doesn't look perfect, either--it takes 5 lines when 3 or even 1
> would do.  So, maybe allow the [ ] syntax for blocks that are only one
> statement long?
> 
> 	x < 3
> 		ifTrue: [ y := y + 1 ]
> 		ifFalse:
> 			z := z + 1.
> 			m := m * m.





More information about the Squeak-dev mailing list