News for hackers. Stuff that matters.
Re:CoffeeScript, a little language that compiles to JavaScri... by jcl on Thursday December 24, 2009 @03:01PM (#1014302)
Heh... Might want to choose a file extension other than ".cs".
Re:CoffeeScript, a little language that compiles to JavaScri... by ComputerGuru on Thursday December 24, 2009 @03:02PM (#1014303)
Explanation: CS is the C# extension. At least, I think that's the parent's point...
Re:CoffeeScript, a little language that compiles to JavaScri... by jashkenas on Thursday December 24, 2009 @03:09PM (#1014311)
Yeah, all the good extensions are taken -- .cof and .cfs are already other things as well. None of the tooling in the compiler cares about what extension you use: you can call it .coffeescript if you'd like. I'm going to stick to .cs for the parallel to .js for the time being.
Re:CoffeeScript, a little language that compiles to JavaScri... by jcl on Thursday December 24, 2009 @03:37PM (#1014349)
I think the biggest issue is that it makes it hard for programming environments to pick the right syntax coloring. There may also be problems selecting the MIME type when serving the file.

So if you have to use a conflicting file extension, you probably want to use one that isn't already associated with a major programming language or web file type.

Re:CoffeeScript, a little language that compiles to JavaScri... by jeremyw on Thursday December 24, 2009 @06:33PM (#1014535)
.coffee seems an appropriate balance between overloading the namespace and a too-long common string in one's directory.

The 2- and 3-letter extension tyranny must stopped!

Re:CoffeeScript, a little language that compiles to JavaScri... by jashkenas on Friday December 25, 2009 @05:27PM (#1015432)
Nice idea. I've changed the official extension from ".cs" to ".coffee", and it'll go out with the next release. Thanks.
Re:CoffeeScript, a little language that compiles to JavaScri... by timdorr on Thursday December 24, 2009 @03:13PM (#1014319)
Well, it seems that .cof and .cfs aren't associated with other programming languages, so the overlap there is less problematic.