DynamoDS / DesignScript

About the DesignScript language
Apache License 2.0
11 stars 10 forks source link

Runtime type information built-ins #12

Closed pboyer closed 7 years ago

pboyer commented 8 years ago

There should be built in functions for getting the type of a variable at runtime. Presently there are none.

Consider the following proposal:

typeof(var : var[]..[]) : string

Obtains the type of a variable. For compound dictionary types, returns simply "dictionary"