myst-lang / myst

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

Closes #174. Implement various type conversions for primitive values #179

Closed faultyserver closed 6 years ago

faultyserver commented 6 years ago

As described in #174, this includes Integer#to_f, Float#to_i, Float#round, String#to_i, and String#to_f.

These are essentially passthroughs to the native Crystal methods. The String methods, which take arguments in the Crystal version, are implemented with all of the flags enabled for simplicity. This will likely change when named arguments are allowed.