myst-lang / myst

A structured, dynamic, general-purpose language.
http://myst-lang.org
MIT License
118 stars 17 forks source link

Closes #165. Use native types for primitives. #166

Closed faultyserver closed 6 years ago

faultyserver commented 6 years ago

Integer, Float, Boolean, and String are now all implemented directly by Crystal's native Int64, Float64, Bool, and String types.

165 covers most of what went into the implementation changes, so I won't bother repeating it here. The only difference is that instead of changing how type lookup works, the native types have been re-opened to add the needed type_name, truthy?, and ivars properties on them. For these types, referring to ivars will raise an exception.