@halorgium I usually do. But conflating absence with error isn’t great.
@ReinH @_mlen @halorgium @evanphx it's just a generic :) type CargoResult<T> = Result<T, CargoError>
-
-
@wycats@_mlen@halorgium@evanphx Right, but I’ve never been happy with this syntax anywhere. :p -
@ReinH@_mlen@halorgium@evanphx really? It feels really intuitive to me -
@wycats@_mlen@halorgium@evanphx It’s like driving on the “wrong” side of the street. ;) -
@ReinH@_mlen@halorgium@evanphx makes sense :)
End of conversation
New conversation -
-
-
@wycats@ReinH@halorgium@evanphx In Haskell it’s called abstract data type :) Equivalent for Result is data Either a b = Left a | Right b -
@_mlen@wycats@halorgium@evanphx algebraic data type :) -
@ReinH@wycats@halorgium@evanphx Doh! I never remember how to expand that acronym properly :) -
@_mlen@wycats@halorgium@evanphx It can be both but “algebraic” is the relevant bit here :)
End of conversation
New conversation -
-
-
@wycats@ReinH@halorgium@evanphx It’s funny that when you give different groups the same concept, they’ll invent different name for it :)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.