Closed
Description
Over time, this keyword has increasingly bothered me. There are several problems:
type
is a very generic word and I'd just as soon leave it available for variable names (and keyword arguments!)- There are now several kinds of types, so it seems strange to use
type
to refer only to concrete, mutable, struct-like types. type
is the most obvious type-defining keyword, but usuallyimmutable
is preferable and recommended.
Here are some alternate keyword suggestions:
mutable
-- opposite ofimmutable
!struct
-- at least says something about what sort of type it isreftype
-- for "reference type", which also conveys some of its key properties