Question about layer.name for special layers

Intermediate layers return just the layer name displayed in the Layers palette, while Alternate returns the Master name attached to it + layer name, is this intentional ?

Screenshot 2024-11-27 at 10.34.53

Regular [50‹wg‹100]
{50}

Makes sense in my eyes, since all alternate layers can have the same axis rule, but need to exist once for each master. Intermediate layers each have unique coordinates.

You should not use layer.name for much other than UI purposes.