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

invocants default to :D ? #4626

Open
p6rt opened this issue Oct 7, 2015 · 1 comment
Open

invocants default to :D ? #4626

p6rt opened this issue Oct 7, 2015 · 1 comment
Labels
6.d Related to the next 6.d language release at_larry

Comments

@p6rt
Copy link

p6rt commented Oct 7, 2015

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

Searchable as RT126283$

@p6rt
Copy link
Author

p6rt commented Oct 7, 2015

From @lizmat

[12​:14​:07] <lizmat> hmmm...
[12​:14​:34] <lizmat> S06​:1633 states​: "In standard Perl 6, C<Int> is generally assumed to mean C<Int​:_>, except for invocants, where the default is C<Int​:D>."
[12​:14​:54] <lizmat> I don't think we've actually implemented it this way at the moment?
[12​:15​:17] <lizmat> m​: class A { method foo { dd self } }; A.foo
[12​:15​:17] <+camelia> rakudo-moar c47145​: OUTPUT«A␤»
[12​:15​:39] <lizmat> according to S06​:1633, that should have been an error ?
[12​:15​:44] <jnthn> lizmat​: Indeed. Another little thing to decide before Christmas.
[12​:16​:09] <jnthn> lizmat​: I think the problem has always been that it makes it harder to write `new` methods
[12​:16​:11] <lizmat> should I ticket this, or is it on the list somewhere already
[12​:16​:18] <jnthn> You can ticket it
[12​:16​:39] <lizmat> will do
[12​:16​:43] <jnthn> The resolution may well end up being we change S06, but we should decide on it one way or the other.
[12​:16​:54] <lizmat> yup, indeed :-)

@p6rt p6rt added 6.d Related to the next 6.d language release at_larry labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.d Related to the next 6.d language release at_larry
Projects
None yet
Development

No branches or pull requests

1 participant