by murbard2 · 11y ago · 0 comments
1) functions that take multiple arguments break the pattern of concatenating functions to build advanced expressions (yes, there is . but it's not nice to use)
2) the right to left evaluation means you constantly have to go back to the begin of the line to append functions
Both of these problems go away if you make it a stack based language with postfix notation.
It combines all the readability of K with... all the readability of Forth.
It's at https://github.com/alpha123/vio if you're interested, but very much WIP. The VM is rather simple if you feel like poking around.
Other notable features would be built-in parser combinators (with an unreadable postfix regex-like syntax). Concatenative parser combinators are pleasantly surprising to use.
I'm interested in the idea, but without anything to go on it's pretty impossible to look at.
Something of a README is now up.
[home] http://lang5.sourceforge.net/tiki-index.php
[examples] http://lang5.sourceforge.net/tiki-index.php?page=About
* - I love the notation in J/K/APL but really want to see it written left to right, much like chaining together map/reduce/filter methods in Ruby with dot notation. I also want auto-vivification from Perl and the use of implicit variables for map/reduce/filter.
I look forward to messing with Klong.