musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

3.0: Remove numeric and boolean aliases #152

Closed iccir closed 6 years ago

iccir commented 6 years ago

Historically, we had the following types aliased to 'number':

double, float, int, char, short, long

These were aliased to boolean:

Bool, bool

All of these aliases were undocumented. Due to the lack of integer types in JavaScript (and TypeScript), we shouldn't silently change them to number.

While we could keep the two C-style boolean aliases, let's drop them for simplicity.