Semantics of Array Prototypes

General APL language issues

Semantics of Array Prototypes

Postby baingeenej on Fri Mar 10, 2023 3:24 am

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.
baingeenej
 
Posts: 4
Joined: Fri May 13, 2022 9:33 am

Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest