Skip to content
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

error message when using special colon method call form #4505

Open
p6rt opened this issue Sep 3, 2015 · 1 comment
Open

error message when using special colon method call form #4505

p6rt opened this issue Sep 3, 2015 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Sep 3, 2015

Migrated from rt.perl.org#125976 (status was 'new')

Searchable as RT125976$

@p6rt
Copy link
Author

p6rt commented Sep 3, 2015

From @hoelzro

For example​:

  class Foo { method bar { } }

  Foo.new.bar​:;
  ===SORRY!=== Error while compiling <unknown file>
  Confused
  at <unknown file>​:1
  ------> F.new.bar​:⏏;
  expecting any of​:
  colon pair

A seasoned Perl 6er will know what's wrong right away, but I'm concerned if newbies to the language will try the colon form of a method call as "how you do method calls sans parens".

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant