New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bare 'print' and 'say' calls should be compile errors #544
Comments
From @masakRakudo r34400: $ perl6 -e 'print' $ S16:340, about 'print': ] It is a compiler error to use a bare C<print> without arguments. ...and, S16:360, about 'say': ] As with C<print>, it is a compiler error to use a bare C<say> without |
From dave.whipp@gmail.comS16 requires that "say" (and "print") when called with no args should |
From @pmichaudOn Tue, Jan 06, 2009 at 01:50:06PM -0800, Dave Whipp wrote:
Since S16 has been in an incomplete "draft" status for such a long Thanks, Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @TimToadyOn Tue, Jan 06, 2009 at 08:39:00PM -0600, Patrick R. Michaud wrote: Hmm, well, the case for complaining on "print" is pretty clear cut, With "say" it's not such a clear case, since they might have been say ''; to be clearer about the intent. So my inclination is to outlaw I suppose a case could be made for just making one or both of those Larry |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudOn Wed, Jan 07, 2009 at 05:53:40PM -0800, Larry Wall wrote:
I'm fine with this. How about C< say() > as a function call instead of a listop? If they're "compiler errors", do you expect that we'll catch them
That also works for me -- I'd just like a pointer as to where Thanks! Pm |
From @pmichaudOn Wed Jan 07 17:54:26 2009, larry wrote:
Bare "say" and "print" are now illegal in Rakudo as of r35431. This say; # error If the C<say()> and C<print()> forms should be disallowed, we can do Pm |
From @pmichaudOn Sun, Jan 11, 2009 at 07:18:53PM -0800, Patrick R. Michaud via RT wrote:
Actually, that fix didn't turn out to be complete, so I've entered say; # error Since this matches the spec, I'll close this ticket (as soon as I can Pm |
1 similar comment
From @pmichaudOn Sun, Jan 11, 2009 at 07:18:53PM -0800, Patrick R. Michaud via RT wrote:
Actually, that fix didn't turn out to be complete, so I've entered say; # error Since this matches the spec, I'll close this ticket (as soon as I can Pm |
From @pmichaudAssigning to moritz to make sure we have a spectest. Pm |
From @moritzOn Sun Jan 11 21:21:39 2009, pmichaud wrote:
Added some to t/spec/S16-io/bare-say.t (and added it to t/spectest.data) Moritz |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#61770 (status was 'resolved')
Searchable as RT61770$
The text was updated successfully, but these errors were encountered: