[Mono-list] Mixing languages within

Jonathan Gilbert 2a5gjx302@sneakemail.com
Thu, 09 Dec 2004 22:38:50 -0500

At 11:18 PM 09/12/2004 +0000, you wrote:
>I don't know what the .Net standard would have to say about this....
>I would like to mix C# and (say) Hypothetical String Processing Language 
>(HSPL) and (say) Hypothetical Data Processing Language (HDPL) within the 
>same source code file. e.g.
>class mixed {
>     string normal_c_sharp_method() {
>       string ret = null;
>       <region is HSPL>
>          some HSPL...modifying ret
>       </region is HSPL>
>       <region is HDPL>
>          some HDPL...modifying ret
>       </region is HDPL>
>       return ret
>    }
>Is this a crazy idea?

You may want to check out Cw (C omega), a research language created at


It isn't precisely what you want, but it does merge a variety of concepts.
In particular, XML can be used inline, and is treated as a short-hand for
construction/initialization of objects, and SQL can be used on data
structures defined within the language.

Jonathan Gilbert