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

RE: LFM + LFSP = LFE?



On Mon, 16 Jun 2003, Brent Fulgham wrote:

> > 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.

To be fair to Smalltalks, you only have to allow for implicit context
receivers in your Smalltalk to get if:then:else: exactly as specified,
and the concept isn't so bad since the behavior is defined on blocks, for
control-flow.

-- 
Brian T. Rice
LOGOS Research and Development
http://tunes.org/~water/