Ferreteria/v0.6/clade/Sys/Data/Things/Array: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (→Concepts) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
|} | |} | ||
==About== | ==About== | ||
Clade structure | ===Concepts=== | ||
* An Array is always a Series (i.e. it retains order), but a Series is not necessarily an Array. (It could be more like a stream.) | |||
* An Array always has a key, but sometimes the key is just a sequential number. A Keyed array is an Array with assigned key-values. | |||
* (not implemented) A Flags[et] is a collection of boolean values, i.e. predefined items which are either present or absent | |||
** It ''probably'' makes more sense to just implement these as integer constants defined with binary values, rather than a clade... unless you want a user-friendly readout? To be explored. | |||
* (not implemented) An enum is a fixed set of values, and can represent each of those values individually. A wrapper for this could provide additional services not permitted by {{l/htyp|PHP/enum|PHP's enum implementaton}}. | |||
===Clade structure=== | |||
''subject to revision while I think through the concepts (2025-08-16)'' | |||
* {{l/ver/clade|Sys/Data/Things|Array}}: clade which consolidates all the array-type interfaces and code | * {{l/ver/clade|Sys/Data/Things|Array}}: clade which consolidates all the array-type interfaces and code | ||
* Array-type interfaces & code (traits) which go into {{l/ver/clade|Sys/Data/Things|Array}}: | * Array-type interfaces & code (traits) which go into {{l/ver/clade|Sys/Data/Things|Array}}: | ||
Latest revision as of 14:12, 17 August 2025
| Clade Family | ||
|---|---|---|
|
StandardBase (c,i) |
→ Array | |
About
Concepts
- An Array is always a Series (i.e. it retains order), but a Series is not necessarily an Array. (It could be more like a stream.)
- An Array always has a key, but sometimes the key is just a sequential number. A Keyed array is an Array with assigned key-values.
- (not implemented) A Flags[et] is a collection of boolean values, i.e. predefined items which are either present or absent
- It probably makes more sense to just implement these as integer constants defined with binary values, rather than a clade... unless you want a user-friendly readout? To be explored.
- (not implemented) An enum is a fixed set of values, and can represent each of those values individually. A wrapper for this could provide additional services not permitted by PHP's enum implementaton.
Clade structure
subject to revision while I think through the concepts (2025-08-16)
- Array: clade which consolidates all the array-type interfaces and code
- Array-type interfaces & code (traits) which go into Array:
- ARoot: tentatively, this stuff should all be in Array.
- To be explained:
History
- 2025-08-15 I keep getting muddled about how this is supposed to work, and therefore writing problematic code -- so, finally mapping it out conceptually.