4 ms·
Heh... Might want to choose a file extension other than ".cs".
by jcl 17y ago
Heh... Might want to choose a file extension other than ".cs".
- ComputerGuru 17y agoExplanation: CS is the C# extension. At least, I think that's the parent's point...
- jashkenas 17y agoYeah, 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.
- timdorr 17y agoWell, it seems that .cof and .cfs aren't associated with other programming languages, so the overlap there is less problematic.
- jcl 17y agoI 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.
- jeremyw 17y ago.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!
- jashkenas 17y agoNice idea. I've changed the official extension from ".cs" to ".coffee", and it'll go out with the next release. Thanks.
- deleted 17y ago[deleted]