Re:Option and null in dynamic languages
by dragonwriter on Wednesday December 10, 2014 @03:34PM
(#8731513)
> Go doesn't have tuples because they aren't very compatible with compile-time type safety.
That's...amusing. ML-family languages use tuples extensively (Haskell, because of its preference for currying, somewhat less than others), and yet are light years ahead of Go when it comes to compile-time type safety.
Re:Option and null in dynamic languages
by NateDad on Friday December 12, 2014 @10:22AM
(#8740460)
Sorry, you're right. I was thinking of tuples without defined types for the slots, like "this function returns a tuple of two objects", not "this function returns a tuple of (string, int)".
That's...amusing. ML-family languages use tuples extensively (Haskell, because of its preference for currying, somewhat less than others), and yet are light years ahead of Go when it comes to compile-time type safety.