4 ms·
Those attributes that look like comments have to go. Geez.
by cheez 12y ago
Those attributes that look like comments have to go. Geez.
- steveklabnik 12y agoIt's likely that they will turn into @foo rather than #[foo]. The proposal is still being worked on.
- Argorak 12y agoI don't understand the problem. Rust doesn't have # for comments, and I find `#[random]` easier to the eyes then `@random`. Or are we speaking about `@[random]`? Then again, I've never been one for micro-syntax-discussions.
- steveklabnik 12y agoThe motivation doesn't have to do with it looking like comments: https://github.com/rust-lang/rfcs/pull/386 https://github.com/rust-lang/rfcs/pull/386
- Argorak 12y agoAh, okay, thanks!
- cheez 12y agoGood enough for me.
- pjmlp 12y agoToo much shell programming?
- dbaupp 12y agoA 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.