Array model: Difference between revisions
Jump to navigation
Jump to search
→Array prototypes
Miraheze>Marshall (Prototypes) |
Miraheze>Adám Brudzewsky |
||
Line 43: | Line 43: | ||
=== Array prototypes === | === Array prototypes === | ||
{{Main|Array prototype}} | |||
An empty array may carry additional information to indicate what type its elements would be, if it had any. In a language with homogeneous arrays, this is typically just the type: character, numeric, or boxed. In a nested array language, the prototype may be quite complex, containing an entire nested structure. | An empty array may carry additional information to indicate what type its elements would be, if it had any. In a language with homogeneous arrays, this is typically just the type: character, numeric, or boxed. In a nested array language, the prototype may be quite complex, containing an entire nested structure. |