Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (1 / 5) |
Uptime: | 45:13:57 |
Calls: | 422 |
Calls today: | 1 |
Files: | 1,024 |
Messages: | 90,304 |
quotations ... strike me as being wrong in every way, not least
because they are intended to feature prominently, stuffed in one's
face. I don't understand the appeal at all.
IMO it does nothing for readability to see a definition interrupted by another. My reaction is one of WTF.
: make-action ( n -- xt ) [n:d ." You pressed " . ] ;I don't understand make-action at all. What is it meant to be doing?
Call me boring but I don't like inventing new syntax only to have to
the antithesis of Forth - the opposite of being simple.
So are quotations worth it for Forth? I don't know. I see some uses
for them but I'd tend to say that style is more common in GC'd
languages.
What language do you know where
nested definitions are nameless?
dxf <dxforth@gmail.com> writes:
What language do you know where
nested definitions are nameless?
Just to name a few: Lisp, Smalltalk, Postscript, Joy, Factor. A much
longer list can be found at ><https://en.wikipedia.org/wiki/Anonymous_function#List_of_languages>.
- anton
On 10/02/2025 2:45 am, Anton Ertl wrote:
dxf <dxforth@gmail.com> writes:
What language do you know where
nested definitions are nameless?
Just to name a few: Lisp, Smalltalk, Postscript, Joy, Factor. A much
longer list can be found at
<https://en.wikipedia.org/wiki/Anonymous_function#List_of_languages>.
"The use of anonymous functions is a matter of style. Using them is never
the only way to solve a problem; each anonymous function could instead be defined as a named function and called by name."
So it's a style - a fashion statement.