What's your favorite way to represent Option<T> in JS? I'm partial to `null | { value: T }`.
@Raynos @littlecalculist You've never had a situation where you want to differentiate user-supplied null from "no value"
-
-
@wycats if I go to the effort of using option<T> to get rid of null why would I reintroduce it ?@littlecalculist -
@Raynos@littlecalculist as an opaque user-supplied value. map.get() might return user-null or "nothing" -
@wycats@Raynos@littlecalculist agreed I always thought that saying null is the end of a stream is very weird. Null is a valid value
End of conversation
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.