I agree with Bert. If the &quot;Argument expected -&gt;&quot; message would appear right after the colon, that would be of great help. Checking to see if there&#39;s a comment where there should be an argument might be trickier (maybe by that time the parser has already stripped the comments), but it would be a plus.<br>
It&#39;s hard to suggest something other than that; it&#39;s really not enough to just put the error message after the colon, because in the newbie&#39;s mind it will now be pointing to a string (s/he still hasn&#39;t been informed that it&#39;s a comment) so nothing has been clarified.<br>
If detecting the comment is too hard for the parser, maybe just say &quot;expecting argument, found &#39;.&#39; &quot;. That&#39;ll give me a clue and let me know it&#39;s skipping &quot;hey&quot; for some reason.<br><br>
<br><div class="gmail_quote">On Mon, Aug 8, 2011 at 6:33 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On 08.08.2011, at 10:44, Frank Shearar wrote:<br>
<br>
&gt; On 8 August 2011 03:42, P. &lt;<a href="mailto:uploaded@gmail.com">uploaded@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi folks,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m sending this email to both Squeak-dev and Pharo-project as you can see.<br>
&gt;&gt; This is to suggest a fix.<br>
&gt;&gt;<br>
&gt;&gt; I typed this on a workspace:<br>
&gt;&gt;<br>
&gt;&gt; closure := [:x | Transcript show: x].<br>
&gt;&gt; closure value: &quot;hey&quot;.<br>
&gt;&gt;<br>
&gt;&gt; And when I &quot;did it&quot;, the VM had me looking at this:<br>
&gt;&gt;<br>
&gt;&gt; closure := [:x | Transcript show: x].<br>
&gt;&gt; closure value: &quot;hey&quot;. Argument expected -&gt;<br>
&gt;&gt;<br>
&gt;&gt; Which is cryptic at best for a newbie.<br>
&gt;&gt; I visited #<a href="mailto:squeak@irc.freenode.net">squeak@irc.freenode.net</a> and asked there.<br>
&gt;&gt; Ken Causey helped me out and even he missed the difference between &quot;&quot; and &#39;&#39;<br>
&gt;&gt; for a second.<br>
&gt;&gt; I believe it would be beneficial to newbies to have this enhanced somehow,<br>
&gt;&gt; to point<br>
&gt;&gt; out the fact that strings aren&#39;t double-quoted.<br>
&gt;<br>
&gt; Tricky, given that the error message is correct. After you strip out<br>
&gt; the comments, you have<br>
&gt;<br>
&gt;  closer value: .<br>
&gt;<br>
&gt; which is clearly not kosher.<br>
&gt;<br>
&gt; What kind of fix would work for you?<br>
<br>
</div>It would be nicer if the &quot;Argument expected&quot; was shown right after the colon. Possibly the compiler could say what it saw instead (&quot;found comment instead of argument&quot;).<br>
<font color="#888888"><br>
- Bert -<br>
</font><div><div></div><div class="h5"><br>
&gt; I&#39;m just thinking that<br>
&gt; special-casing when you have a process part of a keyword message send<br>
&gt; followed by a comment is tricky:<br>
&gt;<br>
&gt;  this is: &quot;valid&quot; code<br>
&gt;<br>
&gt; for instance.<br>
&gt;<br>
&gt; frank<br>
&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; Peter<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br>