Post Reply 
50g System RPL list processing
11-01-2014, 08:31 PM (This post was last modified: 11-01-2014 08:36 PM by Han.)
Post: #19
RE: 50g System RPL list processing
(10-31-2014 07:01 PM)Claudio L. Wrote:  
(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.

I think you misread my post. In fact, I'm suggesting almost the same idea as Marcus von Cube -- excluding the notion of "one"

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 50g System RPL list processing - ttw - 06-21-2014, 02:13 AM
RE: 50g System RPL list processing - Han - 10-28-2014, 05:06 PM
RE: 50g System RPL list processing - Han - 10-31-2014, 02:15 PM
RE: 50g System RPL list processing - Han - 11-01-2014, 08:34 PM
RE: 50g System RPL list processing - Han - 11-02-2014, 01:04 AM
RE: 50g System RPL list processing - Han - 11-01-2014 08:31 PM
RE: 50g System RPL list processing - Han - 11-02-2014, 06:26 PM



User(s) browsing this thread: 1 Guest(s)