On 9/29/2011 5:06 PM, David Nadlinger wrote:
Yes, this pattern is very useful indeed, I also often use a similar solution for generating code for string mixins on the fly. Do we already have a name for it, by the way? I like to call it »IEDL for »Immediately Executed/Evaluated Delegate Literal«, but that's probably just me.
No previously chosen name that I know of, but I like your name. Anyhow, I'm impressed/pleasantly surprised. I didn't realize an IEDL could be executed at compile time to produce a mixin string. If IEDLs are that universally useful, then they definitely deserve some special case performance optimizations, i.e. inlining and avoiding heap allocations. Does anyone else have any interesting use cases for them?
