Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Float type that isn't compatible with int #6

Closed
KotlinIsland opened this issue Oct 21, 2021 · 2 comments
Closed

Add a Float type that isn't compatible with int #6

KotlinIsland opened this issue Oct 21, 2021 · 2 comments

Comments

@KotlinIsland
Copy link
Owner

KotlinIsland commented Oct 21, 2021

int ducktypes to float, whacky alert!, add a Float type that doesn't ducktype.

def foo(f: Float):  ...

foo(1)  # invalid
@KotlinIsland KotlinIsland changed the title Add a TrueFloat type Add a Float type Oct 21, 2021
@KotlinIsland KotlinIsland changed the title Add a Float type Add a Float type that isn't compatible with int Oct 21, 2021
@KotlinIsland KotlinIsland added this to the 2.0 milestone Oct 26, 2021
@KotlinIsland KotlinIsland modified the milestones: 2.0, 3.0 Nov 24, 2021
This was referenced Mar 4, 2022
@KotlinIsland KotlinIsland added the p-3 low label Mar 4, 2022
@KotlinIsland
Copy link
Owner Author

What about a protocol of int | float?

@KotlinIsland KotlinIsland removed this from the 3.0 milestone Mar 25, 2022
@KotlinIsland
Copy link
Owner Author

#167 wins

@KotlinIsland KotlinIsland closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants