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

It has gotten a lot friendlier-looking in recent versions, thanks to the reduction in odd type-punctuation for lifetime description. It's more uniform now.


Those attributes that look like comments have to go. Geez.


It's likely that they will turn into @foo rather than #[foo]. The proposal is still being worked on.


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


The motivation doesn't have to do with it looking like comments: https://github.com/rust-lang/rfcs/pull/386


Ah, okay, thanks!


Good enough for me.


Too much shell programming?


A lot of popular non-shell languages use #, e.g. Ruby, Python, PHP.


Scripting languages, usually coupled with shell programming.


That'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.)


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




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

Search: