3 ms·
I don't think that K and J belong in that category of languages. While they both also welcome a point-free style of programming, an important characteristic of
by boomlinde 9y ago
I don't think that K and J belong in that category of languages. While they both also welcome a point-free style of programming, an important characteristic of concatenative languages is that (almost) any sequence of tokens is a valid sub-program, making it very easy and natural to factor and compose programs from smaller programs.
In Forth, if you figure that a sequence of 5 tokens are used often, you don't consider what parameters are used and name them in a function definition. You rip those 5 tokens out verbatim into a word definition, which when called pulls them implicitly off the stack just as if the tokens were in-line.
- notduncansmith 9y agoYou're absolutely right, thanks for correcting my mistake. I think my brain lazily threw them in there because I learned about them all around the same time. Also, I came across this fascinating directory of links a while back, some of which explore the overlap further: http://nsl.com http://nsl.com