bishabosha / spire-scala3

Bringing Spire to Dotty/Scala 3
MIT License
14 stars 2 forks source link

Implement Generic Numeric literals #27

Closed bishabosha closed 5 years ago

bishabosha commented 5 years ago

Numeric literals have been updated in Dotty so that if a target type is known, a custom parser can be invoked by the compiler.

This functionality could be implemented for the classes in the spire.math package, such as FastComplex, UInt, ULong etc.