3 ms·
How often do you actually do "dup, swap, roll" in a Forth program, though? The typical Forth program doesn't look like the samples you see on its Wikipedia pag
by ken 6y ago
How often do you actually do "dup, swap, roll" in a Forth program, though? The typical Forth program doesn't look like the samples you see on its Wikipedia page, just like the typical C program doesn't look like the samples you see on its Wikipedia page.
I could go the other way and say that dereferencing arbitrary pointers, maintaining a \0 at the end of every string, and declaring which variables should live in registers aren't part of my business logic, either. C sure sounds terrible! Just because a language allows low-level implementation details doesn't mean it requires them in every function.
I don't understand the logic of having a language which allows you to build your own abstractions, and deciding that it's a better use of one's time to drop it altogether and instead use a language whose only user abstractions are structs and functions.
- andrewflnr 6y agoGranted, C is pretty awful too. My personal favorite option remains "better language". Forth-likes are an under-utilized source of inspiration for sure, but I don't think we should be satisfied with stack-twiddling any more than with C strings.