Implicit enum conversions are a stupid PITA

bearophile bearophileHUGS at lycos.com
Fri Mar 26 07:33:24 PDT 2010


Aelxx:
> In my embedded C projects I always use
> u8, i8
> u16, i16
> u32, i32
> f32 for floats
> and they are all defined in user's header file, surely IDE highlights them 
> as keywords :), so no need for language changes =).

D tries to give sensible defaults, good for most programmers, also to increase code uniformity across different codebases. Python shows that having common style and idioms is very useful to build better a community of shared modules.

Bye,
bearophile



More information about the Digitalmars-d mailing list