CΩ? Replace C #'s Dongdong? ----- C # extension language ~

xiaoxiao2021-03-05  20

I see C # Most people have not learned it! Microsoft is studying a new stuff again, the name is sucking, called CΩ, Ω is a symbol in mathematics, the MS website says is an extension language as a C #, about its grammar, first see, people Look at the dizziness, I don't know what to write.

Look at the code snippet below:

Fragment 1:

Using Microsoft.comEGA;

Using system;

Public class newsitem {

Attribute string title;

Attribute string author;

Struct {datetime date; string body;

Public static void main () {

Newsitem news =

{datetime.now}

i am the first post of the new year.

;

Console.writeline (news.title "by" news.author "@ news.date);

}

}

Fragment 2:

Foreach (b in bs.book) {

Yield Return

{b.title}

{b.author}

}

how about it? Stunning, you can write XML tags directly in your code, and call, output about it has its introduction and examples in MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml01142005.asp

Http://research.microsoft.com/comega/doc/comega_startpage.htm

Now there is already its compiler, and you can integrate VS after installation. Develop and apply in NET.

CΩ compiler download page:

Http://research.microsoft.com/research/downloads/download.aspx?fuid={92e68cf7-ba75-4142-9ed0-25daed04efd7}

转载请注明原文地址:https://www.9cbs.com/read-39330.html

New Post(0)