3 ms·
> I did, however, take the RPN approach Hah! I feel dumb for not noticing this now :) Regarding concatenative languages, for most words you how many elements
by vanderZwan 9y ago
> I did, however, take the RPN approach
Hah! I feel dumb for not noticing this now :)
Regarding concatenative languages, for most words you how many elements of the stack it consumes and then drops back on the stack, so those should be easy. You're right that when that varies things get complicated. Not sure how to address that - perhaps manual annotations? But would it still be worth it then?
I suspect something like Joy[0] or Cat[1] would be easier to handle though, being a more predictable, functional language. Kitten[2], while a lot cooler and the only one still being actively developed, requires type annotations, so would probably a pain to write out.
BTW, sticking to the topic of programming language input (even though this interface is more general than that) if you add some kind of support for often and recently used keywords (kind of like the predictions in mobile soft-keyboards) that could save a lot of typing too! Maybe have a top three of both, one on the left, the other on the right.
[0] https://en.wikipedia.org/wiki/Joy_(programming_language) https://en.wikipedia.org/wiki/Joy_(programming_language)
[1] https://web.archive.org/web/20120723021444/http://www.cat-language.com https://web.archive.org/web/20120723021444/http://www.cat-la...
[2] http://kittenlang.org/ http://kittenlang.org/