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.
Integer
,Float
,Boolean
, andString
are now all implemented directly by Crystal's nativeInt64
,Float64
,Bool
, andString
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?
, andivars
properties on them. For these types, referring toivars
will raise an exception.