Re:Will Hare replace C? Or Rust? Or Zig? Or anything else?
by ncmncm on Tuesday May 03, 2022 @09:13PM
(#31255677)
It is hard to find anyplace where you may have C but not C++. Do people still use PICs? I think 32-bit ARM chips may be had for 3 cents nowadays. For a really memory-constrained target, you might choose to turn off exception support.
[ Parent
| on HN ]
Re:Will Hare replace C? Or Rust? Or Zig? Or anything else?
by pjmlp on Wednesday May 04, 2022 @05:20AM
(#31258299)
They do, but personally I would be pushing for Pascal in such cases.
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.