KoryNunn / presh

An immutable interpreted expression language.
MIT License
6 stars 2 forks source link

toString? #23

Closed markwylde closed 3 years ago

markwylde commented 3 years ago

What sort of witchcraft is toString?

It seems to be "hardcoded" into the scope, and we can't override it?

Is this intentional?

markwylde commented 3 years ago
presh(`toString(1)`, { toString: (a) => String(1) })
KoryNunn commented 3 years ago

Fixed in https://github.com/KoryNunn/presh/commit/fb2b560a8b79401d202a5736109799788d526994