LINQ for ActionScript

G-uniX has a post up about a project he’s been working on to bring LINQ-like functionality to ActionScript. He’s been doing a lot of C# work and was really digging how LINQ works.

LINQ is a pretty cool concept that I don’t totally understand all of the nuances for. It essentially makes it really easy to get bits of data. G-uniX’s code sample illustrates it pretty well. You can use SQL-like syntax on an Array or any other data structure:


private var q:GAIQL = new GAIQL()
private var result:Array = q.Call("FROM myarray GET thevalueiwant" ,this);

This would be great to have for AS3 so if you're interested in the project, let him know and he should let you in on the early bits.

Related posts:

  1. What’s up with Twitter’s Flash/ActionScript 3 API?
  2. Cold Fusion Components
  3. Peter Fisk’ C# and ActionScript Performance Test
  4. Essential ActionScript 3 is the Bestselling O’Reilly Book Ever
  5. Yahoo! Maps for ActionScript 3
  • http://extremeblue.wordpress.com/ Buzzy

    This is such awesome news. I really think LINQ revolutionizes the way programmers handle data. Will be keeping a close eye on further development. Thanks for the info.

    Buzzy

  • Anonymous

    Hi Ryan, Maarten Balliauw had done something alike for PHP and it works really nice!

    That’s a “sweet” way to handle data.

    Cheers from Portugal

  • http://surfmind.com AndyEd

    If you’d spent your .ASP career writing sqlStmt += ” from data”; you’d be jazzed about LINQ too.

    It is pretty cool, but especially so for the MSFT camp as they never had the ability to mix in logical code in their sql statement constructors, having to resort to string hacking. Blah!

  • Rabih

    There is also a Linq to Objects implementation in actionscript 3, check it out here: LINQ to Objects in AS3