<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Levente,</p>
<p><br>
</p>
<p>alright, I like your arguments (sorry for the bad joke)! I would also not like to support [|] unless it's necessary.</p>
<p><br>
</p>
<p>How do you feel about <span>Compiler-ct.417? Another, more expensive approach might be a SyntaxDeprecationWarning. :-)</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Levente Uzonyi <leves@caesar.elte.hu><br>
<b>Gesendet:</b> Montag, 10. Februar 2020 22:46:42<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] [:x] considered improper (was Re: The Inbox: ShoutCore-ct.69.mcz)</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Christoph,<br>
<br>
My understanding is that the conclusion was that [:x] should not be <br>
valid[1].<br>
In my option, it makes no sense to support a useless extremal case.<br>
The BNF you posted below says that it is not valid.<br>
<br>
But the BNF is from the ANSI standard's draft, so there's an extremely <br>
slim chance that it was changed in the actual standard. But<br>
- I doubt anyone would like to pay for it to find out<br>
- I'm not aware of any smalltalk implementation that would strictly follow <br>
the standard<br>
- the standard is not a good standard<br>
<br>
In my option, [|] is another extremal case that I don't think we need to <br>
support.<br>
It's longer than [], and both parsers detect it the same way: the closing <br>
| of the temporary declaration is missing.<br>
<br>
So, to sum it up, IMHO neither [:x], [:x :y] nor [|] should be supported. <br>
Parser accepts [:x] and [:x :y], which should be fixed; perhaps just a <br>
warning should be raised.<br>
<br>
<br>
Levente<br>
<br>
[1] <a href="http://forum.world.st/The-Inbox-ShoutCore-ct-69-mcz-tp5102398p5102912.html">
http://forum.world.st/The-Inbox-ShoutCore-ct-69-mcz-tp5102398p5102912.html</a><br>
On Mon, 10 Feb 2020, Thiede, Christoph wrote:<br>
<br>
> <br>
> [Ugh, Nabble removed all my code examples again. Resend below:]<br>
> <br>
> <br>
> _________________________________________________________________________________________________________________________________________________________________________________________________________________________________<br>
> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Thiede, Christoph<br>
> Gesendet: Montag, 10. Februar 2020 14:10 Uhr<br>
> An: squeak-dev@lists.squeakfoundation.org<br>
> Betreff: Re: [squeak-dev] [:x] considered improper (was Re: The Inbox: ShoutCore-ct.69.mcz)  <br>
> Sorry for reviving this old thread ...<br>
> <br>
> This is still an open issue, isn't it?  (oh, it would be so comfortable if we had something like GitHub issues ...)<br>
> <br>
> <br>
> And just one related question: According to the BNF John mentioned --<br>
> <br>
> <block constructor> ::= '[' <block body> ']'<br>
> <block body> ::= [<block argument>* '|'] [<temporaries>] [<statements>]<br>
> <block argument> ::= ':' identifier<br>
> (from the ANSI Smaltalk Standard)<br>
>  -- the following should be valid syntax as well, shouldn't it?<br>
> <br>
> [|] value.<br>
> <br>
> 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?<br>
> <br>
> Which is the exact standard we are following? The Blue Book? The ANSI Smalltalk Standard?<br>
> <br>
> Best,<br>
> Christoph<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> --<br>
> Sent from: <a href="http://forum.world.st/Squeak-Dev-f45488.html">http://forum.world.st/Squeak-Dev-f45488.html</a><br>
> <br>
> <br>
></div>
</span></font>
</body>
</html>