Implement `0b` for integers
A stack-oriented programming language suitable for code golfing
Status: Alpha
Brought to you by:
aditsu
Sometimes you just want to get an integer in a range of bases, and having to remove 0
from the range to avoid an error is often annoying, or sometimes it's shorter to remove unwanted bases after the conversion. Could 0b
on integers be implemented somehow?
One option is to just wrap the given integer in an array:
5 0b --> [5]
This would ensure that a roundtrip 0b
conversion would yield the same integer again.