Open snoopyjc opened 2 years ago
No code is generated for pattern match in spite of side effects. For example:
"976562500000000" =~ /(\d+)/;
is an expression and generates no code. Instead it needs to run the pattern match which sets $1 to the matching pattern.
Fixed in https://github.com/snoopyjc/pythonizer
No code is generated for pattern match in spite of side effects. For example:
is an expression and generates no code. Instead it needs to run the pattern match which sets $1 to the matching pattern.