This is what exceptions as flow control looks like: http://bit.ly/2uoLmd5
Curious what you think of http://docs.diesel.rs/diesel/prelude/trait.LoadDsl.html#method.get_result … then
-
-
I think my point is that writing an explicit rescue for something which has a non-raising equivalent is smelly.
-
What is the non-raising equivalent though? (keeping in mind that you usually want a 404 not a 500)
- 4 more replies
New conversation -
-
-
(The idea being that having the signature be `Option` would be painful, because you most commonly want to assume a result came back)
-
I like leaving it up to the programmer, b/c in some contexts you'll get no results 50% of the time, some contexts 0.0001%
- 4 more replies
New conversation -
-
-
Sean get https
- 1 more reply
New conversation -
-
-
Feels like rescuing when a user shouldn't reach an invalid :id is legit. e.g. Links only built from the db. If user input I don't rescue.
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.