"Smoking that weed that makes you understand the Rust borrow checker"
@mcc the eternal struggle between trying to make it always obvious what's going on specifically and making it impossible to tell what's going on overall because of repetitive line noise about things you do all the time.
@megmac I pair "DRY" with a second idea "Say What You Mean". If code has a repetitive aspect to it, I think languages should have enough abstraction to let you write something that removes that repetition while clearly communicating to a human reader what the abstraction is doing. I think this is possible!
@mcc It's so much nicer in rust with ? and .expect() and let Ok(x) = ... else {} and error conditions being a value in general.
I could never get into go for this specific reason.
@fabiosantoscode however I still hate that there are the two different ?s. I wish they could be unified
I haven't taken enough drugs to know what drug you have to take to become so easygoing it's no longer frustrating that every single line of code in Go must be followed by
if err != nil {
return err
}
"I find the repetitive action soothing actually"