[Ugh, Nabble removed all my code examples again. Resend below:]
________________________________ Von: Squeak-dev squeak-dev-bounces@lists.squeakfoundation.org im Auftrag von Thiede, Christoph Gesendet: Montag, 10. Februar 2020 14:10 Uhr An: squeak-dev@lists.squeakfoundation.org Betreff: Re: [squeak-dev] [:x] considered improper (was Re: The Inbox: ShoutCore-ct.69.mcz)
Sorry for reviving this old thread ...
This is still an open issue, isn't it? (oh, it would be so comfortable if we had something like GitHub issues ...)
And just one related question: According to the BNF John mentioned --
<block constructor> ::= '[' <block body> ']' <block body> ::= [<block argument>* '|'] [<temporaries>] [<statements>] <block argument> ::= ':' identifier
(from the ANSI Smaltalk Standardhttps://wiki.squeak.org/squeak/uploads/172/standard_v1_9-indexed.pdf#page=21,22) -- the following should be valid syntax as well, shouldn't it?
[|] value.
The explanation is that, according to Wikipedia, an asterisk in the BNF stands for "0 or more times". So provided that there is not a mistake in the official standard document, shouldn't we support the above example?
Which is the exact standard we are following? The Blue Book? The ANSI Smalltalk Standard?
Best, Christoph
-- Sent from: http://forum.world.st/Squeak-Dev-f45488.html