Why we should remove {} from Squeak
Dana Anthony
Dana.Anthony at sas.com
Mon Oct 15 15:56:07 UTC 2001
I'm not sure this "same selector multiple times" is a good idea, because it seems to assume that all selectors are associative. What would you get from "10-6-3"? And if it's deterministically left to right (or right to left, or whatever) without parens, why restrict that to homogeneous operators?
-----Original Message-----
From: Jecel Assumpcao Jr [mailto:jecel at merlintec.com]
Sent: Monday, October 01, 2001 3:18 PM
To: squeak-dev at lists.squeakfoundation.org
Subject: Re: Why we should remove {} from Squeak
In Self, "4+5*6" generates complaint about a syntax error. You *must*
use parenthesis for this to compile. The exception to the "ambiguous
binary selectors" rule is when the same selector is used multiple times
as in "4+5+6", though I could live without this small convenience.
-- Jecel
More information about the Squeak-dev
mailing list
|