pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

Diamond operator has several issues

Open snoopyjc opened this issue 3 years ago • 1 comments

Diamond operator with glob expression generates bad code. For example:

while(<*.c>) ...

Empty diamond operator <> is supposed to read all the files from @ARGV, but instead only reads STDIN.

Double diamond operator <<>> is supposed to be a safe version of <> but doesn't work.

A scalar in a diamond operator <$var> should read from that file handle.

snoopyjc avatar Nov 23 '21 17:11 snoopyjc

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

snoopyjc avatar Feb 07 '22 16:02 snoopyjc