Better branding of -betterC

Siemargl inqnone at gmail.com
Fri Nov 13 07:58:56 UTC 2020


On Thursday, 12 November 2020 at 21:22:37 UTC, Dibyendu Majumdar 
wrote:
> On Thursday, 12 November 2020 at 18:33:39 UTC, Paul Backus 
> wrote:
>> On Thursday, 12 November 2020 at 18:07:08 UTC, Dibyendu
>
>>
>>> Also the compiler cannot assist you in making this choice.
>>
>> I'm not aware of any compiler, for any language, than can 
>> provide this kind of assistance. Until we invent AIs that can 
>> write code for us, we programmers are going to be stuck making 
>> our own choices. :)
>
> Sorry I didn't make myself clear.
> In Rust for example unions are unsafe whereas enumerated types 
> aren't (caveat: this is based on my imperfect knowledge). So 
> having it in the language allows the compiler to better infer 
> safety of the code, and thus help the programmer make better 
> choices.

I think you are mistaken. Rust only helps to make the only choice 
possible.


More information about the Digitalmars-d mailing list