- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
It took me way too long to notice the horror on the right
To me it just looks like you do not need the braces at all
Hang on, this is just a C++ joke slapped onto Rust.
You could say they have rewritten the joke in Rust
But you get the joke faster now.
No, it’s just impossible for it to leak out of a hole in the back of your head that you didn’t realise was growing under your pony tail.
My eyes! My eyes!!!
rustfmt
is stopping me from writing code like this, and I have never been more happier using it after viewing this.
I’m going to write a tool that automatically adds the braces and semicolons to the column as you edit the code.
I will call it
rustfml
Crap, thats what I was thinking.
It could be run after git checkout and then rustfmt before commit.
Slow down satan
Then some jerk runs rustfmt and ruins all your hard work!
My medication mostly.
I hate it with every fibre of my being but also secretly calmed by that column of statement terminators and brackets.
It’s like the code representation of the Vancouver riots kiss photo.
I’m good at Python, and I don’t know Rust. This looks fine to me. I’ve fully missed the joke.
Same. Until you notice the column of curly braces and semi colons in the right margin.
Oh… Oh god
Lgtm ship it to prod
Oh, so Rust is like JavaScript!
No, Rust lacks the semicolon elision rules of Javascript which make everyone always use semicolons in javascript because they’re so horribly broken.
Rust is like ML, quite literally, not just by ancestry: The syntax is palpably ugly, but at least it’s sane, regular, and concise where it matters.