Re: The Case for Rust (in any system)

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Mon, 09 Sep 2024 14:05:18 UTC
On 9 Sep 2024, at 14:32, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
> 
> David Chisnall writes:
> 
>> On 9 Sep 2024, at 12:24, Poul-Henning Kamp <phk@phk.freebsd.dk <mailto:phk@phk.freebsd.dk>> wrote:
>>> 
>>>> What might that subset be?
>>> 
>>> Initially it will be "better C compiler", but then we will gradually
>>> allow more and more of C++ to be used.
>> 
>> In my experience, the worst C++ code is written by people thinking in C. 
>> The second worst is written by people thinking in Java (or Smalltalk).
> 
> I dont disagree :-)
> 
> But it's either a gradual approach or "never" because a rewrite in toto wont happen.

I agree, incremental change is always better.  I just don’t want to encourage anyone to write C++ that looks like C, because that’s going to combine the frustrations people have with C and C++.  A gradual approach needs a simple step 1, but it also needs a step 2, and then a step 3, and so on.  

David