The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Building the next new language

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paschal

Posts: 1621
Nickname: bigapple
Registered: Nov, 2003

Paschal is a .Net developer
Building the next new language Posted: Nov 19, 2003 5:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Paschal.
Original Post: Building the next new language
Feed Title: help.net
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/pleloup/Rss.aspx
Feed Description: .Net for mankind !
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Paschal
Latest Posts From help.net

Advertisement

Something probably to fuel the debate on Stored procedures versus Dynamic SQL.

Ted Neward propose simply to implement some database relational functions in the language.

The idea of transacted code seems to be futuristic but why not ?

x = 5;
transacted
{
  x += 5;
  throw new IllegalArgumentException("can't do this!");
}
finally // a.k.a. commit
{
  printOut("We committed! x = " + x);
}
rollback
{
  printOut("We rolled back! x = " + x);
}

// x has the value "5", since the exception forces an implicit rollback

A bit freaky to see this kind of mix:

What I want is primitive types that understand the relational and hierarchical data models intuitively and allow me to exercise those operators as a first-class language concept.

At this point, I have no real idea how you would make all this work, but I envision something along the lines of:

relvar r = { fn, ln, age} [ ["Ted", "Neward", 32] ["Don", "Box", 39] ];
foreach (tuple t in r)
{
  printOut("Name is " + t.fn + " " + t.ln + ", " + t.age + " years old");
}

relvar r2 = { fn, ln, age} [ ["Fritz", "Onion", 39] ];
relvar r3 = r UNION r2;
printOut(r3.count); // Prints "3", since there are 3 tuples


 

Read: Building the next new language

Topic: A Custom ASP.NET Server Control for Displaying RSS Feeds Previous Topic   Next Topic Topic: Never get between a momma bear and her cubs...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use