Hacker News new | ask | show | jobs
by pjmlp 1703 days ago
From my point of view in terms of memory safety with Zig, we could just use Modula-2 or FreePascal/Delphi instead, but they aren't as fashionable.
1 comments

As much as I love Delphi, the language syntax hasn't aged well. Single pass compilation was great to have in the 1980's but nowadays even the humblest Raspberry Pi will chew through thousand of lines of C++ and link an optimized executable within seconds.

We deserve and can afford a lot more comfort than Pascal (and siblings) provides. Incidentally, modern language ergonomics also adds much in the way of coding safety, making usage of explicit allocation control a more manageable problem than it was 30 years ago.

Indeed, and that is why for me modern language ergonomics is a synonym for Swift, C#, Nim, D, and Rust.

For Zig to be part of that list, a story for use-after-free must exist as well.

Others won't agree with me, and that is fine, different strokes for different folks.