Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Heh... Might want to choose a file extension other than ".cs".


Explanation: CS is the C# extension. At least, I think that's the parent's point...


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.


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.


Well, it seems that .cof and .cfs aren't associated with other programming languages, so the overlap there is less problematic.


.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!


Nice idea. I've changed the official extension from ".cs" to ".coffee", and it'll go out with the next release. Thanks.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: