dynamic classes and duck typing

Sergey Gromov snake.scaly at gmail.com
Wed Dec 2 15:10:22 PST 2009


BCS wrote:
> I'm not arguing on that point. What I'm arguing is that (at least for 
> me) the primary advantages of metaprogramming are static checks (for 
> non-perf benefits) and performance. Both of these must be done at 
> compile time. Runtime metaprogramming just seems pointless *to me.*

One of important applications of metaprogramming is code generation 
which would be too tedious or bug-prone to generate and support 
manually.  Dynamic languages can definitely provide for that.



More information about the Digitalmars-d mailing list