You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result:
===SORRY!=== Error while compiling -e
Two terms in a row
at -e:2
------> say� 42
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
statement modifier loop
This bug report was motivated by this task from thinkperl6 book:
� What if you put a period at the end of a statement?
Arguably, it can probably figure out that . was used instead of ;. The problem is that . is interpreted as an infix, and therefore it only blows up when it sees the next occurrence of two terms in a row (or any other issue)� Not sure if there is any easy way to implement something like this (but a line ending with a dot should be a good heuristic, no?)
On Thu, 25 May 2017 05:58:39 -0700, alex.jakimenko@gmail.com wrote:
Code:
say �hello�.
say 42
Result:
===SORRY!=== Error while compiling -e
Two terms in a row
at -e:2
------> say� 42
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
statement modifier loop
This bug report was motivated by this task from thinkperl6 book:
� What if you put a period at the end of a statement?
Arguably, it can probably figure out that . was used instead of ;. The
problem is that . is interpreted as an infix, and therefore it only
blows up when it sees the next occurrence of two terms in a row (or
any other issue)� Not sure if there is any easy way to implement
something like this (but a line ending with a dot should be a good
heuristic, no?)
IMO that feels like a solution in search of a problem that assumes too much about what the user actually intended.
Migrated from rt.perl.org#131363 (status was 'open')
Searchable as RT131363$
The text was updated successfully, but these errors were encountered: