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

Silent Success On Missing Commas #4983

Open
p6rt opened this issue Jan 3, 2016 · 3 comments
Open

Silent Success On Missing Commas #4983

p6rt opened this issue Jan 3, 2016 · 3 comments
Labels
RFC Request For Comments

Comments

@p6rt
Copy link

p6rt commented Jan 3, 2016

Migrated from rt.perl.org#127134 (status was 'open')

Searchable as RT127134$

@p6rt
Copy link
Author

p6rt commented Jan 3, 2016

From @zoffixznet

If, when constructing a hash, a comma is ommited, that particular key will be missing from that hash and no error or warning is generated. This it LTA, as can be a source of hard-to-find bugs. Either comma-less assignment should Just Work or an error/warning should be generated.

<Zoffix> m​: my %h = :foo<bar> :ber<boor>, :meow<moo>; say %h
<camelia> rakudo-moar b5cb00​: OUTPUT«foo => bar, meow => moo␤»

Relevant IRC conversation​: http://irclog.perlgeek.de/perl6/2016-01-03#i_11822917

@p6rt
Copy link
Author

p6rt commented Aug 9, 2016

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 4, 2017

From @AlexDaniel

IIRC the idea was that in some cases you should be able to do this without commas. I don't think we need an RFC for this, somebody just has to implement it properly.

Also, I think there are several tickets related to this problem. Maybe worth looking for other ones.

On 2016-01-03 10​:09​:47, cpan@​zoffix.com wrote​:

If, when constructing a hash, a comma is ommited, that particular key
will be missing from that hash and no error or warning is generated.
This it LTA, as can be a source of hard-to-find bugs. Either comma-
less assignment should Just Work or an error/warning should be
generated.

<Zoffix> m​: my %h = :foo<bar> :ber<boor>, :meow<moo>; say %h
<camelia> rakudo-moar b5cb00​: OUTPUT«foo => bar, meow => moo␤»

Relevant IRC conversation​: http://irclog.perlgeek.de/perl6/2016-01-
03#i_11822917

@p6rt p6rt added the RFC Request For Comments label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comments
Projects
None yet
Development

No branches or pull requests

1 participant