[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: how expressive are they?



> x ifTrue: [y] ifFalse: [z]
> x ifFalse: [y] ifTrue: [z]
> x ifNil: [y]
> x ifNotNil: [y]
> x ifNil: [y] ifNotNil: [z]

Yeah.  Now if only we could come up with a system that would allow us to
factor out all those brackets and colons - perhaps some kind of syntactic
transformation...??

Don't get me wrong, syntax can be a great help, as Neel just pointed out
(that, or macros ;)  But syntax should be there to help the users of a
language, not to save the language designers some work (they're too lazy to
implement laziness?)

Anton