Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I noticed that you probably always want the value if the value is a leaf of the tree (typically a primitive value). Similarly, for validation, do you validate records of the values on the records? If the syntax to access the values via a record cursor or via a record is exactly the same, then you can just pass the cursor to the validation function, rather than the record. The validation function doesn't even need to know that it got a cursor.

I'm curious whether you could shoot any holes in that reasoning.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: