@wycats what do you think of that?
-
-
-
@wycats optionals, it looks useful but you end up with the same code you'd have in ruby, right? it's more of a way to optimize the compiler? -
@fabio_mazarotto It's not quite the same as Ruby. Imagine if instead of nil, nil-able responses had .then {|v| } and .or {} on them
End of conversation
New conversation -
-
-
-
@luisobo nil is a variant of an optional value, no? -
-
@Januzellij@luisobo Right, which satisfies my (admittedly sloppily described) constraint. -
New conversation -
-
-
@wycats Actually, there is null in hack. And one of its main features are nullable types. -
@jlgarhdez Not really null, but an enum that has None as one of its variants (http://docs.hhvm.com/manual/en/hack.nullable.php …). Which is the criteria :)
-
@wycats Ah ok, gotcha. BTW, what about elm lang? It has Nothing, but encourages the use of Maybe data type. -
@jlgarhdez Seems to have null, but support Option/Maybe?
-
@wycats @jlgarhdez No null, yes Maybe. http://library.elm-lang.org/catalog/elm-lang-Elm/0.12.3/Maybe … -
@wycats @jlgarhdez I'd be very surprised to find an ML-family language that has null, seems like a waste of a nice type system :)
End of conversation
New conversation -
-
-
@wycats Scala, but (as I'm sure you know) that was pre-2009. -
@bjburton Yeah totally. I originally went with 2010, but didn't want to disqualify Go purely because of announcement date :P -
@wycats Also Scala still has null, but it doesn’t really get used in practice… mostly for Java interop.
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.