JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
588 stars 72 forks source link

Unpack and atoms #90

Open f-carraro opened 4 years ago

f-carraro commented 4 years ago

Right now a\a returns an error.

It would be nice if it behaved like newer Ks where it performs base conversion. a/ and a\ would be inverses, for example:

 2/2\1234
1234

I know the same effect can be achieved with l\a, but I think the most use of \ is in this case of equal bases. It would be really useful to have it for atoms instead of an error.