I don't like that Forth's variable assignment is done this way:

123 FOO !

It seems so.. not postfix. I wonder why they didn't go for something like postscript.

/foo 123 def

· · Web · 2 · 0 · 3

@neauoire It doesn't require changes to the lexer. Postscript needs an "atom" rule.

@neauoire In the spreadsheet-inspired postfix environment I've been playing with, I'm working to define vars like this:

123 =foo

Functions look like this:

x square = x x *

@akkartik Have you thought about using lambdas to do that? That's how I've implemented it in my little toy forth thingy.

@neauoire Yeah, Factor uses quotes and lambdas as well, and it's a nice approach. Here, I'm experimenting with ways to minimize nested regions, just because I have an attack on a nice structured editor:

Some more details:

Sign in to participate in the conversation

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.