What is
delete [[parent] v] of $list
is supposed to do? I couldn't find any explanation nor examples of use cases online / in the forums.
What is
delete [[parent] v] of $list
is supposed to do? I couldn't find any explanation nor examples of use cases online / in the forums.
It's to be used in the OOP library.
Welcome to the forum!
Snap! lets you use lists as dictionaries / objects. You can use a list to store and look up key-value pairs:
The "parent" option is a localizable alias for the ellipsis text (...
). It can serve as the key to another list that becomes a fallback for associations not found in the present one, a.k.a inheritance. Here's an example:
The object "johnny" doesn't have an entry for "last name", to it refers to its parent object to look it up.
As @ego-lay_atman-bay pointed out there is an OOP library that makes using lists as data objects easy.
Does that make sense to you?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.