jashkenas / coffeescript

Unfancy JavaScript
https://coffeescript.org/
MIT License
16.5k stars 1.98k forks source link

Target Dart #1765

Closed 525c1e21-bd67-4735-ac99-b4b0e5262290 closed 12 years ago

525c1e21-bd67-4735-ac99-b4b0e5262290 commented 13 years ago

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 commented 13 years ago

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.

525c1e21-bd67-4735-ac99-b4b0e5262290 commented 13 years ago

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 commented 13 years ago

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 commented 13 years ago

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

525c1e21-bd67-4735-ac99-b4b0e5262290 commented 13 years ago

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

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

michaelficarra commented 13 years ago

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 commented 13 years ago

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

525c1e21-bd67-4735-ac99-b4b0e5262290 commented 13 years ago

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 commented 13 years ago

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 commented 13 years ago

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

525c1e21-bd67-4735-ac99-b4b0e5262290 commented 13 years ago

LOL https://gist.github.com/1277224

jashkenas commented 13 years ago

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 commented 12 years ago

This is tagged as wontfix but still open. Intentional?