crb233 / unarian

Esoteric programming language based on unary functions.
MIT License
4 stars 0 forks source link

Non-standard builtins can create errors #4

Open DivergentClouds opened 1 year ago

DivergentClouds commented 1 year ago

The existence of non-standard builtins would create an error if a program with one is executed in an interpreter that doesn't implement that builtin.

crb233 commented 1 year ago

That's a good point. I think I'll change it so that that any interpreter must either implement them or treat them as built-in identity functions. I would consider adding them to the official specification for the language, but I haven't decided how I'd like them implemented.

DivergentClouds commented 1 year ago

Perhaps if a non-defined function is called then it could be treated as the identity. I'm not sure I like that idea however as it could lead to some really hard to debug problems if you make a typo.