Consider getting rid of the []
symbols from the OpCodes in the source
#351
Labels
enhancement
New feature or request
[]
symbols from the OpCodes in the source
#351
I refactored the code so that opcodes are now heavily used as object keys. However, the brackets in some of them mean that they cannot be used as identifiers in object literals nor dot access. So one does
return op.leq(a, b)
butreturn op["eq[Int]"](a, b)
,{leq: "<="}
but{"eq[Int]": "=="}
.I suggest we keep the brackets in the Polygolf frontend language, but rename the opcodes in the Polygolf typescript source. There are couple of ways of doing that.
at_back[Ascii]
could be referred to asat_back__Ascii
at_back$Ascii
at_back$Ascii$
at_backAscii
The text was updated successfully, but these errors were encountered: