Semantics of Array Prototypes
1 post
• Page 1 of 1
Semantics of Array Prototypes
Over on the APL Orchard, I previously commented, "Nice. Prepending an empty vector lets us control the prototype of a potentially empty vector." However, Adám cautioned, "Relying on that seems dangerous. Better prepend a cell of the type you want, and then dropping (sic) it."
My takeaway from the brief discussion was that concatenation—and perhaps primitives more generally—only have a implementation-defined semantics when operating on two empty arguments, but I suspect this characterization is a bit over-eager.
What parts of primitive operations on empty arrays are considered stable and which parts are considered Wild West™?
Cheers in advance.
My takeaway from the brief discussion was that concatenation—and perhaps primitives more generally—only have a implementation-defined semantics when operating on two empty arguments, but I suspect this characterization is a bit over-eager.
What parts of primitive operations on empty arrays are considered stable and which parts are considered Wild West™?
Cheers in advance.
- baingeenej
- Posts: 4
- Joined: Fri May 13, 2022 9:33 am
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group