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

Thanks a lot for taking the time to reply! That did help a lot.

> you have chosen the worst possible piece of Rust code for someone who has never looked at the language before

That's my luck :P

I was in the middle of turning my HTTP message library from a series of "setHeaderName(value)" functions into just a single "setHeader(name, value)" and was told it had some innovative ideas on how to handle HTTP headers. And I have no doubt it does ... if I could make any sense of it.

Really glad to hear a lot of the vague names were library-specific, the really evil stuff shouldn't ever be used (though I'd argue it shouldn't be exposed outside of the stdlib if true), you definitely cleared up -> and => beautifully, I think the excess colons are a type annotation (used to 'type name' and not 'name: [type]'), and although I still have some questions (around ' and & specifics), I'll read up on your guide instead. Thanks again!



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

Search: