[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: LFM + LFSP = LFE?
> Keyword selectors are nice, but I can't help feeling that
>
> [block evaluating to a boolean]
> IfTrue: [true block]
> IfFalse: [false block].
>
> is counterintuitive versus a more conventional
>
> If: [block evaluating to a boolean]
> Then: [true block]
> Else: [false block].
>
> and I think this sort of thing has hurt smalltalk's
> acceptance.
To be fair, the S-Exp based languages suffer from similar syntax
"quirks", but in the context of the evaluation model they all make
sense.
On the other hand, Scheme's construct at least reads in the right
order :-)
(if (expression evaluating to a boolean)
(True Block)
(False Block))
-Brent