News for hackers. Stuff that matters.
Re:Will Hare replace C? Or Rust? Or Zig? Or anything else? by ncmncm on Wednesday May 04, 2022 @12:47PM (#31262896)
Pascal lacks destructors and templates. No dice.
Re:Will Hare replace C? Or Rust? Or Zig? Or anything else? by pjmlp on Wednesday May 04, 2022 @02:30PM (#31264138)
True, although in the context of PIC programming hardly matters.

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.

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.