5 ms·
A Simple Web App in Rust
- msie 11y agoThe significance of whether a semi-colon ends a line or not bugs me.
- neverminder 11y agoI suppose it depends on one's background. It doesn't bug me that much, but coming from scala background I just take functional/monadic approach and it feels right.
- pcwalton 11y agoI proposed making it insignificant several years ago and most of the Rust community wanted it to stay the way it was, so it was abandoned. I don't actually really care much either way.
- bjz_ 11y agoYeah, you just have to flip your thinking to see it as an expression separator as opposed to a statement terminator.
- ben0x539 11y agoDon't think of it as optional semi-colons, think of the { } block syntax as containing zero or more alway-semi-colon-terminated statements, as well as zero or one bare not-a-statement never-a-semicolon expression giving a value to the whole block. <:D
- bryal 11y agoMore than a line terminator, it's an expression separator, similar to the comma operator in C.[1] [1] http://en.wikipedia.org/wiki/Comma_operator http://en.wikipedia.org/wiki/Comma_operator
- higherpurpose 11y agoMaking web apps in Rust is pretty cool from a "let's push the limits of this systems language" point of view. But what I'd really like to see is all the security apps starting to be built or even rewritten in Rust. So far I don't think I've seen too many.
- neverminder 11y agoI'm pretty sure this will happen sooner or later. My guess is that people who deal with those things are naturally cautious, (hence "security") so it might take some time.
- JoelMcCracken 11y agoIts also the kind of thing that I am completely non-expert at.
- oknoorap 11y agoI haven't tried rust yet, until this article appear, I need more easy peasy tutorial about rust web app, clear and simple tutorial, I'm gopher anyway.
- steveklabnik 11y agoYou might like https://github.com/brson/httptest https://github.com/brson/httptest