About Go, D module naming

Jonathan M Davis jmdavisProg at gmx.com
Fri Dec 21 13:40:42 PST 2012


On Friday, December 21, 2012 12:41:42 Walter Bright wrote:
> On 12/21/2012 5:40 AM, eles wrote:
> > However, it is reasonable to include something like strictness
> > levels as part of the compiler? (think gcc with MISRA-C
> > integrated).
> 
> Having multiple languages via a switch leads to much confusion and cost. I
> try to avoid such as much as possible.

I would point out that -w does exactly that thanks to conditional compilation 
and compile-time introspection. Perfectly valid code can not only become 
invalid, but it can end up with very different semantics when -w and 
conditional compilation are combined. In the case of unused variables, if we 
were to warn for it and use -w, it would completely break Phobos due to many 
traits which have unused variables.

- Jonathan M Davis


More information about the Digitalmars-d mailing list