extending 'import' using 'with'

w0rp via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 1 08:23:58 PDT 2015


On Wednesday, 1 April 2015 at 13:35:22 UTC, ketmar wrote:
> people with Java/C/C++/etc. background tend to forget about the 
> power of
> metaprogramming: they have no such tool at hand, so they don't 
> even think
> about it.
>
> three things that one need to become used of are UFCS (so 
> std.algorighm
> functions chains nicely), lambdas, and metaprogramming. but 
> that has
> downside: when you get used to those, you simply can't get back 
> to Java/C/
> C++/etc. anymore, they feels like something from the past 
> age... ;-)

I tend to think mixins are used too much myself. They slow down 
compilation and inflate memory usage a lot. I always weigh the 
costs against the benefits.


More information about the Digitalmars-d mailing list