I wish that golang had a option/maybe type. I don't care if it's builtin/magic. Would be really useful.
-
-
Replying to @halorgium
@halorgium I usually do. But conflating absence with error isn’t great.1 reply 0 retweets 0 likes -
Replying to @halorgium
@halorgium Consider returning data from a service. Many times you want to indicate there was no data separate from a network error.2 replies 0 retweets 0 likes -
Replying to @evanphx
@evanphx@halorgium Yeah, I really like Option in Rust (as different from Result). Occasionally I even have Result<Option<T>>1 reply 0 retweets 0 likes -
Replying to @evanphx
@evanphx @halorgium it makes using return values for errors for more palatable.
10:27 AM - 1 May 2014
from Portland, OR
0 replies
0 retweets
0 likes
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.