eric-hawthorne / relish

Automatically exported from code.google.com/p/relish
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

A relish-nil-valued attribute cannot be persisted #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The RObject struct-type "Nil" and its type "NIL" is not considered a relish 
primitive type currently, so the persistence code tries to persist the Nil as 
if it were an robject, but this fails because Nil's don't have a DBID.

Need a proper principled design of both uninitialized attributes and attributes 
that have been set to nil.

This design needs to consider persistence and also what the meaning of these 
special values is. Also whether uninitialized and nil will remain separate at 
the relish language level, or instead uninitializeds will be coerced to nil 
when their value is requested.

Some languages and/or databases distinguish between concepts like "unknown 
value" "no value" "uninitialized". What will relish do?

Original issue reported on code.google.com by relis...@gmail.com on 3 Apr 2013 at 11:51