Target Dart #1765

Closed
pyrotechnick opened this Issue Oct 11, 2011 · 13 comments

5 participants

@pyrotechnick

I presume CoffeeScript will never target Dart but I feel as if there will be a "CoffeeScript for Dart" very shortly; all those semicolons and brackets give me a headache :s

I'm just going to go ahead and raise this issue first to get the conversation rolling...

http://dartlang.org

@michaelficarra
Collaborator

Multiple compilation targets is not a goal of this coffeescript compiler. It would be near impossible to support without a complete rewrite, and you can expect to wait at least a few months for anything like that.

@pyrotechnick

That's an excellent wishlist.

Designing and implementing languages is really not my forte. I'm very much an end-user but I will be lending a hand wherever I can.

I agree with your estimate of 2+ months. Here's hoping.

@paulmillr

If someone's interested: i've created a feature request in dart issue tracker -- "get rid of syntactic noise aka semicolons" to make semicolons optional.

@paulmillr

Though, java-folks (or whoever) there do not seem to like the idea, sadly.

@pyrotechnick

Is there any reason other than style to include semi-colons?

Do they help with parsing in terms of speed or anything else?

@michaelficarra
Collaborator

Yeah, I was very disappointed with Dart. It's copied the horrid and verbose syntax of Java, and gives a developer no reason to choose it over javascript other than the optional typing hints. No thanks. I can't see why anyone would choose that over one of the coffeescript forks that adds type annotations.

@paulmillr

The speed difference of language with / without support of optional semicolons is extremely small. So, no.

@pyrotechnick

I see a great deal of value in having both Classes and Interfaces as an integral part of the language; especially if they're optional as is the case in Dart.

Having both dynamic and static typing exist in harmony appeals to the C#-er inside me who used to be blessed with Visual Studio and ReSharper. Don't laugh. I challenge you to find a more comprehensive and efficient environment to write software in.

Anyone bashing on Dart has never felt the pain of longing for things like http://www.dartlang.org/docs/api/Isolate.html#Isolate::Isolate and http://www.dartlang.org/docs/api/Promise.html#Promise::Promise

@paulmillr

Also when I was pouring out one's soul on topic of Dart's shabbiness, developer of dart told me language spec is not locked down yet ("dev preview") and we can make feature requests. So i've opened some more issues.

Maybe, these things would be implemented and the language wouldn't be as shitty as it is now.

@michaelficarra
Collaborator

@paulmillr: I like the theme of those issues. Hopefully they will make in impact.

@jashkenas
Owner

Yes, CoffeeScript will never target Dart. All of CoffeeScript is designed specifically around JavaScript semantics and possibilities.

That said, DartScript might be a great idea if Dart ends up catching on (I'd bet against it, but the big Goog has big muscles)... Feel free to use the CoffeeScript compiler as a starting point if you like.

@quackingduck

This is tagged as wontfix but still open. Intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment