Probably one of the more under-appreciated aspects of #rustlang for me is no-nullable-types. Really makes you realize how poisonous null is
@mxavier Post.find(params[:id]) -> WHAT IS GOING TO HAPPEN?
Post.find(params.get("id").unwrap()) -> Worst case my request fails
-
-
@wycats In haskell find =<< lookup "id" params. Nothing, the null case just propagates thru find. Forced to deal w null case @ type level -
@mxavier same in Rust. The null case is handled via Option<T> and can't be passed in place of T. -
@wycats Glad new languages are actually addressing major plagues in software development these days. Gives me hope :) -
-
-
-
@roeschinc@wycats@mxavier please let me know if I can help. I really want hkt. Like, a lot. Please if I can help, let me. :-) -
@cartazio@roeschinc@wycats@mxavier first step would be a fleshed out proposal (ie. Before writing code) - 9 more replies
New conversation -
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.