Lars Wirzenius on Nostr: I kind of with #Rust #RustLang canonical formatting would put a space after the ...
I kind of with #Rust #RustLang canonical formatting would put a space after the boolean not operator (!). In other words:
if ! filename.exists() {...}
instead of
if !filename.exists() {...}
This would make the negation a little easier to spot.
I don't wish this hard enough to even check if it's been discussed, never mind make a formal proposal. I'm just waiting for my test run to finish.
Published at
2025-03-19 05:49:56 UTCEvent JSON
{
"id": "ab29096654dc1f8292974e412d4556209a01d3c450a0e0ca7b04738cccf19347",
"pubkey": "b10dc1f389e232d431638f9ab5e479818b1bfab197d62e420c170baf0bec09cb",
"created_at": 1742363396,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://toot.liw.fi/users/liw/statuses/114187527572249038",
"activitypub"
]
],
"content": "I kind of with #Rust #RustLang canonical formatting would put a space after the boolean not operator (!). In other words:\n\nif ! filename.exists() {...}\n\ninstead of\n\nif !filename.exists() {...}\n\nThis would make the negation a little easier to spot.\n\nI don't wish this hard enough to even check if it's been discussed, never mind make a formal proposal. I'm just waiting for my test run to finish.",
"sig": "de2f6106134f8ce424bca65ec42840506a3fa114c6c761069e3ef4ac6107842845a2ba001aaad8e868a9e2f9cfb56c03c8b92ed5ba291da52f121a78e755baf7"
}