Skip to content

Conversation

@sampersand
Copy link
Contributor

@sampersand sampersand commented Oct 31, 2025

This PR deprecates the top-level float type, as it's mostly pointless and is not an implicit conversion (like all the other top-level alias types).

Most places you'd expect to use it (eg Math functions) actually require Numeric & _ToF. There's only a few minor edge-cases in the stdlib that use floats directly (eg Regexp.timeout=), but they can instead use _ToF.

@sampersand sampersand marked this pull request as ready for review October 31, 2025 04:58
@sampersand
Copy link
Contributor Author

cc @ParadoxV5 , @soutaro , and @ksss . Thoughts?

@ParadoxV5
Copy link
Contributor

Thoughts?

Perhaps we could use a convenience alias for Numeric & _ToF, then.

@sampersand
Copy link
Contributor Author

It'd only really be used in Math, which already does this with type double = Numeric & _ToF

@sampersand sampersand closed this Oct 31, 2025
@sampersand sampersand reopened this Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants