[Pharo-project] Parsing problem
yoshiki at vpri.org
Wed Dec 24 06:10:57 EST 2008
At Thu, 18 Dec 2008 19:55:31 +0100,
Stéphane Ducasse wrote:
> On Dec 18, 2008, at 6:34 PM, Lukas Renggli wrote:
> >> I've discussed with Stephane and may be we can fix all the methods
> >> that have :
> >> _ instead of :=
> >> or some methods have [ : myArg ... ] instead of [ :myArg .... ]
> > I agree that the use of := should be enforced. I would also like to be
> > able to use _ in names.
> > However: The parser should allow spaces after the $: in block
> > arguments. This is essentially the same syntax as for keyword method
> > declarations without a keyword and there you also allow arbitrary
> > spaces after the colon (normally you even put them there). So I
> > understand when people write block arguments the same way as they do
> > for keyword method declarations:
> > to: stop by: step
> > ...
> > [ : stop : step | ... ]
> It looks a weak argument to me :)
> I would hate to teach that.
> I neither thought you could even do that.
Just for the record, what Lukas described (the part where the args
to block should look like keyword-less keyword message sending) is
indeed the original intention of Dan. (As you probably already knew.)
More information about the Pharo-dev