Z# (Zee-sharp)

A new .NET language

Compile Time Text Generation

Allow ‘macros’? to generate text at compile time.

This text can be code or data or any other text.

You could even generate binary data.

Use a special (compile-time) syntax to output strings? (think razor engine and T4 and the like)?

See also Generator Functions.


Embed any language inside the Z# code with some kind of marker that indicates the interpreter/compiler/source generator.

[[CSharpCodeGenerator]]
#! SomeName     // unique name passed to the generator
"""             // what code block delimiters to use?
    var i = 0;
    for (int i; i < 42; i++)
        ...
"""

Can we do this inline?