5 ms·
A lot of popular non-shell languages use #, e.g. Ruby, Python, PHP.
by dbaupp 12y ago
A lot of popular non-shell languages use #, e.g. Ruby, Python, PHP.
- pjmlp 12y agoScripting languages, usually coupled with shell programming.
- dbaupp 12y agoThat's not really a sensible association. A lot of work is done with those languages where shells are either not used at all, or are just a development tool (e.g. could be replaced by editor features). It seems rather strange to try to forcibly connect Python/Ruby/... and sh, rather than just grouping as languages that happen to share the # for comments. (Maybe they adopted it from shells originally, but the languages definitely stand on their own now.)
- pjmlp 12y agoI never used them for anything else other than scripts on steroids, as I care for application performance. Well, PHP is forced upon me by my ISP and I never bothered to change.