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.
Why would that cause the same feeling?
I’m not sure if you’re taking the piss or not but I’m going to choose to believe you’re asking in good faith!
The code just feels… messy, unfamiliar, almost chaotic - but the semicolons and curly brackets in a neat little row, formatted in a satisfying way, is like an island of calm and order in the middle of a formatting clusterfuck.
A moment of serenity in the middle of a riot, one may think.
Ohhhh thanks for the explanation, I’m a bit stupid :3
Also, I didn’t mean it in a bad way, a genuine question. Thanks for assuming it’s in good faith ^^
My medication mostly.
This makes my deeply uncomfortable, like an itch I can’t quite scratch.
More like a scratch you just can’t itch.
My eyes! My eyes!!!
This is why python has to be putdown
No
Wow, so this is possible.
Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?
The closest thing I’ve seen is Combobulate
If you do that, you lose formatting and comments every time you load the source from disk
Losing formatting other than what you’ve set in your deparser would be the point. Losing comments would be bad, but seems easily fixable just by giving each comment block a symbol that points to it’s contents.
Or by including comments in the parse tree. (& Yes, it is done various places for various languages and formats.)
Do you have some examples?
(That is what I meant by giving them a symbol, maybe I worded it poorly)
It took me way too long to notice the horror on the right
I’ll allow it!
Then some jerk runs rustfmt and ruins all your hard work!
Can’t you fix the default format to this?
Sanity
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.
DwangoAC and the TASBot crew are maniacs in the best possible way. I would like to continue having a high opinion of him, hence I will pretend that this post does not exist.
To me it just looks like you do not need the braces at all
I don’t know Rust. 🤷🏻♂️
(I mean, I don’t know a lot of Python either so I can’t even get the joke. 😞)
In Rust and lots of other languages you have to end each statement with a semicolon. The semi colon is usually placed right after the statement, but in this example there’s indentation after each statement before the semicolon so they’re all aligned.
There’s also the curly brackets, they’re padded in the same way, but those usually define where a scope (block) starts and ends making it even worse.
Look at the right side of the code editor
lmao I didn’t even notice
These scrollbars with issue indicators are becoming more and more fancy