3 ms·
And crystal lang, for static typed language example. https://crystal-lang.org/reference/overview/http_server.html https://crystal-lang.org/reference/overview/h
by slezyr 7y ago
And crystal lang, for static typed language example.
https://crystal-lang.org/reference/overview/http_server.html https://crystal-lang.org/reference/overview/http_server.html
- skohan 7y agoI'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.
- munmaek 7y ago{} 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.
- skohan 7y ago> 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".
- leshow 7y agoThe 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.