extending 'import' using 'with'

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 1 09:16: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... ;-)

Actually metaprogramming is how a lot of magic happens in Java 
and .NET.

It just tends to be frowned up in many companies due to 
maintenance headhaches when one gets too clever.



More information about the Digitalmars-d mailing list