Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-07 Thread Matthias Kramm
On Wed, Jan 07, 2009 at 09:27:06AM -0500, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:
 You may want to look at the haxe language and compiler which already
 does what you're trying to do and see if you can compete with that

haxe is a nifty project. But they're inventing their own language,
which is only similar to (and not quite identical with) ActionScript.

My goal is to be fully compatible with the ActionScript
compiler in Flash CS4 and Flex, but hopefully produce smaller output files 
(Flex's code generator, in particular, is producing somewhat bloated
 bytecode right now) and also offer the aforementioned syntax enhancements.

Btw.: Thanks for all the great suggestions so far!

Greetings

Matthias

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ActionScript syntax enhancements?

2009-01-06 Thread Matthias Kramm
Hi All,

I'm currently in the process of writing a compiler for
ActionScript 3.0.
(In case you're interested, the development snapshot at
 http://www.swftools.org/download.html already contains
 a pre-alpha command-line tool, called as3compile(.exe))

Now, I'm thinking about adding an extended mode to this 
compiler, which will support some additional convenience 
features which are not currently part of the ECMA spec. 

Right now, ideas on my list are things like [a,b,c,] or
{a:b, c:d, e:f, } array/object declarations (allowing the
trailing comma makes it easier to shift elements around 
especially for multi-line structures), try/catch/else, 
for/else, and keyword arguments (functioncall(x=3,y=4)).

I'd be interested to know what other syntax extensions you
can think of that would make life easier for you when
you're writing ActionScript?

Greetings

Matthias


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders