News for hackers. Stuff that matters.
Re:Notes on a Smaller Rust by slezyr on Thursday July 18, 2019 @07:57AM (#20468837)
And crystal lang, for static typed language example.

https://crystal-lang.org/reference/overview/http_server.html

Re:Notes on a Smaller Rust by skohan on Thursday July 18, 2019 @09:30AM (#20469550)
I'm so not a fan of the ruby-style blocks. I never understood the appeal of typing "end" a million times instead of a single close brace.
Re:Notes on a Smaller Rust by munmaek on Thursday July 18, 2019 @10:10AM (#20469924)
{} blocks are used but for one line methods/closures. Since programming has nothing to do with typing speed, there isn't much difference between `end` and `}` other than `end` making more sense in ruby's english-like syntax.
Re:Notes on a Smaller Rust by skohan on Thursday July 18, 2019 @10:33AM (#20470200)
> Since programming has nothing to do with typing speed

I have heard this a lot, and I am not sure I agree. I agree that the limiting factor for how long a project takes to finish is never going to be how fast you can type, but when I am really in flow I am actually typing pretty quickly, and I don't really like more friction when it's not necessary.

Of course it's a matter of taste, but the argument that it's english-like never made sense to me either. There is no english sentence construct with "do ... end" or "wile ... end".

Re:Notes on a Smaller Rust by leshow on Thursday July 18, 2019 @03:53PM (#20473345)
The problem with 'end' IMO is that you have to actually read the word, with } you don't. Of course, this is all useless to argue about. I quite like that lots of languages look different.