3 ms·
As an aside, it's interesting that GitHub as added support for Swift language detection so quickly, yet I frequently read stories (on HN too) about their passiv
by unfunco 12y ago
As an aside, it's interesting that GitHub as added support for Swift language detection so quickly, yet I frequently read stories (on HN too) about their passiveness to correct or add other (sometimes more) popular languages.
- deleted 12y ago[deleted]
- nkvoll 12y agoThis likely has a lot to do with how they do detection. Swift uses the .swift extension, which is pretty unique, so detection is as simple as checking for the file extension with a very low risk of a bad classification. Some of the older, more popular languages uses more common file-suffixes, which may be shared between multiple programming languages, which has a negative impact on classification accuracy.
- GuiA 12y agoYes. In support of this theory: Github does not syntax color Swift files yet (eg. https://github.com/austinzheng/swift-2048/blob/master/swift-2048/NumberTileGame.swift https://github.com/austinzheng/swift-2048/blob/master/swift-...)
- TazeTSchnitzel 12y agoGitHub never bother. People send pull requests to their Linguist repo. If you want a language supported, do that; you only need to edit a yaml file and add some code samples. I added Game Maker Language, for example.