Are you not talking about a class instance? shouldn't all of this initialization happen inside of the constructor?
If we're talking only about static properties it seems more reasonable to me to freeze them upon definition or first use.
If we're talking only about static properties it seems more reasonable to me to freeze them upon definition or first use.
> it seems more reasonable to me to freeze them upon definition or first use
I agree, and that's why I'd default to
static translations = {blah: things}
and not static get translations() {
return {blah: things}
}
the latter does not "freeze" them