Ruby 3.0 to have immutable strings by default / C++ heading towards "generic all the time".
Enamex via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 24 01:36:54 PDT 2015
On Thursday, 20 August 2015 at 22:07:10 UTC, John Carter wrote:
> https://twitter.com/yukihiro_matz/status/634386185507311616
>
> Pity that concepts looks to be a very painful syntax for
> expressing what D does so clearly.
One big difference is that C++1z concepts are supposed to allow
looking for external functions, not only methods. That would
require some kind of principled hijacking of templates in Dlang
(or else the constraint template would keep looking for the
functions, called by ufcs, either inside the type of in the
templates declaration position). I haven't managed to work that
out yet except by using mixins :/
More information about the Digitalmars-d
mailing list