c3d / xl

A minimalist, general-purpose programming language based on meta-programming and parse tree rewrites
GNU General Public License v3.0
270 stars 15 forks source link

Option to transparently convert `->` to `is` for Tao3D programs import #22

Open c3d opened 4 years ago

c3d commented 4 years ago

Since Tao3D relies heavily on the old syntax -> for what is now is, it would be neat to have an option to automatically convert A ->B into A is B.

There are clear limitations to this approach. Notably, X is 0 is now a constant, whereas X -> 0 in Tao3D would create a variable.