pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

Multiline assignments of constant hashrefs generate bad code

Open snoopyjc opened this issue 3 years ago • 2 comments

Multiline assignments of constant hashrefs generate bad code. For example:

$i = {
key1 => "val1",
key2 => "val2",
};

snoopyjc avatar Dec 05 '21 01:12 snoopyjc

Ditto for

map {
    ...
}

and

grep {
    ...
}

snoopyjc avatar Jan 05 '22 04:01 snoopyjc

Fixed in https://github.com/snoopyjc/pythonizer

snoopyjc avatar Feb 07 '22 16:02 snoopyjc