2 ms·
Lua for instance has specific syntax added for it: https://www.lua.org/manual/5.4/manual.html#3.3.8 https://www.lua.org/manual/5.4/manual.html#3.3.8 Languages
by veltas 5y ago
Lua for instance has specific syntax added for it: https://www.lua.org/manual/5.4/manual.html#3.3.8 https://www.lua.org/manual/5.4/manual.html#3.3.8
Languages tend to have workarounds or conventions for this kind of code where there isn't special syntax for it:
https://stackoverflow.com/a/865272 https://stackoverflow.com/a/865272 (Python)
Also just because C or C++ codebases don't use GC doesn't mean it's not useful. I've never used it either, but I can think of situations where I would use it. Like I've not used most of the algorithms I learned at uni but I can still think of where I might use them.