[OT] Writing a parser for BASIC in Smalltalk/Squeak ? (<CSOTD > included)

Bijan Parsia bparsia at email.unc.edu
Thu Jan 10 03:46:45 UTC 2002


On Wed, 9 Jan 2002, Tim Rowledge wrote:

[snip]
> Does anyone really think that it is _proper_ that
> | m n  |           
> n := 2.            
> m := 3.            
> n := m + (m := n).

EVIL!

> gives a different answer to
> | m n  |           
> n := 2.            
> m := 3.
> m := n.            
> n := m + m.
> ??

Yes, so that people will be discouraged from doing the former, though if
they wrote it in the first place they might be beyond hope.

(Note: this is humor, and if you actually did write the first
version...uh...well...You Still Should Be Punished!!!)

Let's make it a *syntax* error! ;)

Cheers,
Bijan Parsia.





More information about the Squeak-dev mailing list