Is it time for D 3.0?

Guillaume Piolat firstname.lastname at gmail.com
Mon Mar 30 00:43:42 UTC 2020


On Saturday, 28 March 2020 at 23:00:34 UTC, krzaq wrote:
> I'm notrea disputing that. I'm saying that D standarized the 
> wrong names. Rust hit the bullseye, while C/C++ is somewhere in 
> the middle. And the alias argument is IMO weak because of it 
> being non-standard.

The first letters of a word count more for

To me the whole i8/u8/i16/u16/i32/u32 is just unreadable,

"float" and "double" are staple names in the native community for 
32-bit and 64-bit floating point numbers.

Those names are used in C / C++ / OpenCL / CUDA etc.
C and C++ is the dominant native programming culture, why change 
name and syntax people already know?
The only other acceptable name would perhaps be "single" instead 
of "float" (like Pascal did). "float" being 64-bit in ocaml gets 
is particularly wrong. Sorry but there is very little to win by 
tryng to be clever with different names.

Also regarding integers.
We write "int" because it contains the information "this is an 
integer", that it is 32-bit is rarely _that_ interesting for 
perceiving the intent.

The new names are obvious Rust mistakes :) it solves no problem 
and they also departed from C integer promotion rules... and end 
up with casts everywhere, which is another level of unsafety.


More information about the Digitalmars-d mailing list