"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
@mcc that is bothersome yeah. I haven't tried it but I suppose one could make a single error enum and use it throughout their application. Including an error called something like "empty", and an associated function .try_empty()? that returns () if empty or an error otherwise.
The problem would be the million external functions we use.
@mcc there's no exceptions in golang? (looks up) well fuck. assertions then? (looks up) nope not those either
how nice. why couldn't they have made "panic" conditional
@mcc it's called the chill monad
@mcc smoking that borrowed tree
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"