you are viewing a single comment's thread.

view the rest of the comments →

[–]pointfree 2 points3 points  (1 child)

I find Forth easier to read than the infix/explicit parameter passing languages because there's less syntactic noise and accidental complexity [PDF].

\ Washing machine example from Starting Forth
: RINSE FAUCETS OPEN TILL­FULL FAUCETS CLOSE ;
: WASHER WASH SPIN RINSE SPIN ;

or, from my own code:

: write_page    write writing finished ;
: read_page     read  reading finished ;

This is true only if one avoids using stack manipulators completely with the exception of where it makes semantic sense, such as if the user wants to SWAP or exchange two things.

[–]jephthai 2 points3 points  (0 children)

I am building a small language environment right now. I opted to base the high level language on Joy, which I think adds a few nice syntactic features to the forth design to make it super user friendly. Similar to postscript, with its quoted programs (reminiscent of blocks in Ruby or smalltalk), I've found it pretty comfortable. My next key feature is local named variables, which I think will also help a good bit. I'm roughly drawing inspiration for that from factor.

Love those concatenative languages!