Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of NullValue for Cell Objects #704

Open
rdbyk opened this issue Oct 19, 2018 · 0 comments
Open

Definition of NullValue for Cell Objects #704

rdbyk opened this issue Oct 19, 2018 · 0 comments

Comments

@rdbyk
Copy link
Owner

rdbyk commented Oct 19, 2018

is currently the empty matrix [], however anything can be assigned to cell element, cf. below

--> L=list();L(2)=2; // L(1) is now Undefined
--> C{1}=L(1)
 C  = 
  [  listundefined]

--> C{1}=null()
 C  = 
  [  listdelete]

--> C{1}=insert()
 C  = 
  [  listinsert]

Thus, it seems to be more consistent (wrt to lists) to use ListUndefined as "NullValue" for cell objects (which, of course, should be renamed Undefined). We hear you whispering "this would break compatibility with M ...". Well, ask yourself is S really compatible to M? Do you really expect S to become fully compatible to M one day? Why don't you use O?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant