cm0002@lemmy.world to Programmer Humor@programming.dev · 10 days agoWhat's stopping you from writing your Rust like this?imagemessage-square61fedilinkarrow-up1405cross-posted to: [email protected]
arrow-up1405imageWhat's stopping you from writing your Rust like this?cm0002@lemmy.world to Programmer Humor@programming.dev · 10 days agomessage-square61fedilinkcross-posted to: [email protected]
minus-squareDave.@aussie.zonelinkfedilinkarrow-up70·edit-210 days agorustfmt is stopping me from writing code like this, and I have never been more happier using it after viewing this.
minus-squarekilleronthecorner@lemmy.worldlinkfedilinkEnglisharrow-up61·10 days agoI’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
minus-squareirelephant [he/him]🍭@lemm.eelinkfedilinkEnglisharrow-up10·10 days agoCrap, thats what I was thinking.
minus-squareverstra@programming.devlinkfedilinkarrow-up9·9 days agoIt could be run after git checkout and then rustfmt before commit.
minus-squarenintendiator@feddit.cllinkfedilinkEnglisharrow-up1·9 days agoPlease do, I’m waiting for it to get ported to other languages.
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
Please do, I’m waiting for it to get ported to other languages.