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

automatic extraction of type parameters is dangerous #5

Open
stevengj opened this issue Nov 6, 2023 · 0 comments
Open

automatic extraction of type parameters is dangerous #5

stevengj opened this issue Nov 6, 2023 · 0 comments

Comments

@stevengj
Copy link

stevengj commented Nov 6, 2023

The current default definition seems dangerous to me — it could silently give the nonsensical results.

(For SVector{N,T} it already gives a somewhat confusing error.)

It seems safer to default to throwing a MethodError, or maybe typeof(real(one(T)))

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

No branches or pull requests

1 participant