50g System RPL list processing
|
10-31-2014, 07:01 PM
Post: #13
|
|||
|
|||
RE: 50g System RPL list processing
(10-31-2014 02:15 PM)Han Wrote: Shouldn't the result be nil as well? Naively speaking, "addition" of \( X \) with nil should return \( X \) whereas "multiplication" of \( X \) with nil should return nil. I don't think it makes any sense to have any operation on ambiguous arguments return anything un-ambiguous. I thought he meant restoring the zero value when nil is operated with another object (when we "know" what nil is supposed to mean). If we use "nil operated with anything = nil", then nil becomes a cancer that spreads through the stack eating all your results, and you don't notice anything until much later, making it difficult to debug your code. I'd rather get an error then, at least it tells me where the problem originated in the first place. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)