4 ms·
> a more smalltalk-like "everything is just values and functions" syntax Can you do that sort of thing without a GC? Some functional languages use tailcall as
by 0815test 7y ago
> a more smalltalk-like "everything is just values and functions" syntax
Can you do that sort of thing without a GC? Some functional languages use tailcall as their control flow primitive, but that's just a glorified GOTO.
- lmm 7y agoI don't see why not? Rust has first-class functions and its lifetime support is supposed to be a big selling point, so it ought to be possible to implement things like "if" and "for" as userspace functions - and if not, then that suggests important limitations to its lifetime/ownership model.