import std.traits. std.string;

Meta jared771 at
Sat Jun 16 06:43:25 UTC 2018

On Saturday, 16 June 2018 at 00:24:42 UTC, DigitalDesigns wrote:
> space is ignored! Seems like a bug std . traits . std . string 
> is valid?

Like most C-family languages, D is a freeform language[1]. 
Funnily enough, I don't think this is explicitly stated in the D 
spec (at least not that I could find). It's just assumed, because 
D is an evolution of C, C++, and Java primarily, all of which are 
freeform languages.

There are a couple places where whitespace is significant in D, 
but for the most part, you can write your code in whatever way 
you want as long as it's syntactically valid according to the D 


More information about the Digitalmars-d mailing list