4 ms·
Forth dialects typically don't have forward referencing _or_ variables that can be defined in the middle of a function, though! (Though, writing a function lon
by remexre 3y ago
Forth dialects typically don't have forward referencing _or_ variables that can be defined in the middle of a function, though!
(Though, writing a function long enough that you might want to declare a variable part-way through it would probably be a code smell in Forth...)
- wolfgang42 3y agoI was vaguely under the impression that Forth only dereferenced words from the dictionary into functions when you call them, but I admit I haven’t actually used it. In that case, being able to reorder your code so you can give the overview of what you’re trying to do before diving into the finer details of its internals does seem like a great help!