Andrei's list of barriers to D adoption

Ethan Watson via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 7 01:09:49 PDT 2016


On Tuesday, 7 June 2016 at 07:57:09 UTC, Walter Bright wrote:
> C++ still suffers from:
>
> http://www.digitalmars.com/articles/b44.html
>
> and probably always will.

template< size_t size > void function( char ( &array )[ size ] );

It's horrible syntax (no surprise), and being a templated 
function means it's recompiled N times... but there's at least 
something for it now.

(Of note is that it's how you're expected to handle string 
literals at compile time with constexp, but it doesn't make 
string manipulation at compile time any easier. Go figure.)


More information about the Digitalmars-d mailing list