Re:Will Hare replace C? Or Rust? Or Zig? Or anything else?
by ncmncm on Thursday May 05, 2022 @11:44AM
(#31274829)
Pascal is unsafe by default: it allows null pointers, and stale pointers.
Re:Will Hare replace C? Or Rust? Or Zig? Or anything else?
by pjmlp on Friday May 06, 2022 @03:44AM
(#31282467)
True, but it has a much safer story than C in everything else.
C++ was attractive to me in 1993, because it offered me the safety, and modern language features I was used from Turbo Pascal and then some.
For me no dice is being unsafe by default.
Thankfully in the context of C++ I could always fix, what from my point of view, are bad defaults regarding bounds checking.