Consider adding Document#[Meta] API
-
Yurii Rashkovskii
- Assigned user changed from Oleg Andreev to Yurii Rashkovskii
-
Yurii Rashkovskii
I would like to emphasize that it seems that implementation of this feature will not be that complex. We seem to have all or most of all building blocks for this; and it will NOT replace #[:slotname] or #slotname API — it will be just an option on top of it.
-
ronin-14694 (at lighthouseapp)
+1 I really like this idea. It would allow for some great object modelling, where a slot Meta document contains further logic. I guess it means that you can create a slot Meta for a common datatype (like PhoneNumber) and set formatting/validation logic there if I gather correctly.
-
Yurii Rashkovskii
Fabien, you are absolutely correct — you can extract common datatypes of literally any level of complexity and set formatting/validation logic there; not to mention that your documents' slots with these metas (aka metaslots) will now have "machine-readable meaning"
-
Yurii Rashkovskii
- Milestone set to 0.0.4
-
Yurii Rashkovskii
- State changed from new to open
-
Yurii Rashkovskii
Agreed to separate [by design] left side (metaslots) and right part (document embedding). That will provide a better flexibility for us.
-
Yurii Rashkovskii
So in this ticket we'll deal with left side only.
Here is what's left:
- consider moving special slots like meta, version, previous_version to metaslots
-
Yurii Rashkovskii
:meta has been replaced with Meta metaslot
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.