Open jtran opened 3 days ago
type
is used for the keys of objects in the stdlib. For example, see ImportFormat, which is the options of the import()
function. Our options:
type
to kind
, format
, type_
, or some other alternative.type
, specifically, to allow it, but not other keywords and typestype
as a keyword. I.e. the proposed change is not wanted.My inclination is to not special-case things, keep things simple, and go with option 1.
Before 1.0, we'd like to reserve more keywords so that users don't use them as variable names.
This is the list that was proposed:
_
(underscore)new
interface
type
record
struct
object
as
https://github.com/KittyCAD/kcl-experiments/pull/15from
I think we should add to this list:
self
https://github.com/KittyCAD/kcl-experiments/pull/15array
- Could be a runtime conversion function or the type. We already support optional type annotations, likestring
,number
, andsketch
. We use[]
for the type, but it still may be useful to refer to the type or constructor by name.Should we consider others? Here's JavaScript's and Python's.
implements
to use the interface?data
,datatype
, orenum
;match
,case
, orswitch
.do
oryield
? https://github.com/KittyCAD/kcl-experiments/pull/20