3 ms·
Yep. The C# design attitude seems to be that the compiler-writers have the ability to define such macros, but the C# compiler users don't. Compare with F#. Tho
by SideburnsOfDoom 14y ago
Yep. The C# design attitude seems to be that the compiler-writers have the ability to define such macros, but the C# compiler users don't. Compare with F#.
Though that may change with C# 5 and Roslyn (http://en.wikipedia.org/wiki/Microsoft_Roslyn http://en.wikipedia.org/wiki/Microsoft_Roslyn compiler as a service)
- deltasquared 14y agoSurprisingly, you don't have to wait for Roslyn. The technique exists now [0]. It is kind of a pain to use and seems kind of dangerous to use as a web app. But it is there. I messed with this a few years ago. [0] http://stackoverflow.com/questions/3111190/compiling-net-code-in-net-4 http://stackoverflow.com/questions/3111190/compiling-net-cod...