From: Lady Date: Wed, 14 Jun 2023 04:42:16 +0000 (-0700) Subject: Give Tag constructors a superclass X-Git-Url: https://git.ladys.computer/Etiquette/commitdiff_plain/a3aca34a22550e1555bcdf8a571492213bfa83b0?hp=a3aca34a22550e1555bcdf8a571492213bfa83b0 Give Tag constructors a superclass This “simplifies” the static method definitions on Tag constructors by giving the constructors themselves private fields and using a method implementation common to all of them (on their prototype chain), rather than manually defining each with partial application during initial constructor generation. This is also somewhat desirable as it means that the expected situation of :— ```js Object.getPrototypeOf(Tag).prototype == Object.getPrototypeOf(Object.getPrototypeOf(new Tag)) ``` —: is true, which was not formerly the case. ---