Added type definitions for float, _ToRange[T], range[T], and interned #1469
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds in the
_Range[T]
interface, andrange[T]
,float
, andinterned
aliases._Range[T]
is theRange
equivalent of_ToInt
, and is used in many places.range[T]
is an alias forRange[T] | _Range[T]
, akin tostring
andint
.float
is an alias forFloat | _ToF
, which is used in quite a few places (egRegexp#timeout=
)interned
is an alias forSymbol | string
, which is frequently used, even in unexpected areas (egRegexp#=~
)Note that I used
interned
instead ofid
, as I suspect people'll be much more likely to defineid
aliases, and find conflicts, thaninterned
.