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
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»
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»
Migrated from rt.perl.org#127134 (status was 'open')
Searchable as RT127134$
The text was updated successfully, but these errors were encountered: