Re:Python 3.5 to Ship with Matrix Multiplication Operator
by thwest on Tuesday April 08, 2014 @03:32PM
(#7555458)
Why though? I'm of the opinion that the error should be handled at the place that produces the first NULL/None. Objects should be valid.
[ Parent
| on HN ]
Re:Python 3.5 to Ship with Matrix Multiplication Operator
by dragonwriter on Tuesday April 08, 2014 @07:16PM
(#7556646)
> Why though? I'm of the opinion that the error should be handled at the place that produces the first NULL/None.
Producing NULL (or whatever the languages equivalent is) isn't an error -- if there was an error, it would be throwing an exception, not returning NULL. The idea of "do this chain of operations propagating nulls encountered at any point" is reasonably useful.
Re:Python 3.5 to Ship with Matrix Multiplication Operator
by thwest on Tuesday April 08, 2014 @07:46PM
(#7556790)
I just hate NULL standing in for a boolean notion of existence, I'd rather see a separate boolean member indicating the validity of the other member (string middle_name; boolean has_middle_name;). Or in a strongly typed language an Option/Maybe type. Just assigning things NULL sometimes has the problem of people looking at the object and assuming everything will always be populated.