3 ms·
C has VLAs https://en.wikipedia.org/wiki/Variable-length_array https://en.wikipedia.org/wiki/Variable-length_array Apparently I suck at linking because this was
by bjourne 8y ago
C has VLAs https://en.wikipedia.org/wiki/Variable-length_array https://en.wikipedia.org/wiki/Variable-length_array Apparently I suck at linking because this was the thread I was looking for: https://news.ycombinator.com/item?id=18124708 https://news.ycombinator.com/item?id=18124708 As you can see, there is no heap in C so we are free to ignore it.
- kaoD 8y agoI pretty much agree with that thread's replies, not much to add. I didn't know VLAs though (they didn't exist back in the day when I used C). Even though you still have no growable buffers/reallocation (AFAICT), I concede those open up a wider class of complex programs. Thanks for the pointer (pun intended) on VLAs, will check them out. Still no garbage collection though (and I agree with you that neither is Rust's).