Hacker News new | past | comments | ask | show | jobs | submit login
A Simple Web App in Rust (joelmccracken.github.io)
17 points by neverminder on June 3, 2015 | hide | past | favorite | 11 comments



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


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


Its also the kind of thing that I am completely non-expert at.


The significance of whether a semi-colon ends a line or not bugs me.


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


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


Yeah, you just have to flip your thinking to see it as an expression separator as opposed to a statement terminator.


Don'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


More 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


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





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

Search: