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

Use Base._stable_typeof #107

Open
LilithHafner opened this issue Jul 4, 2024 · 1 comment
Open

Use Base._stable_typeof #107

LilithHafner opened this issue Jul 4, 2024 · 1 comment

Comments

@LilithHafner
Copy link
Owner

Whenever we tell the compiler the type of something, we should follow Base._stable_typeof and also tell it the value if the value is a type. i.e.

julia> @b Int rand
84.453 ns (1.17 allocs: 19.085 bytes)

Should be type-stable

@LilithHafner
Copy link
Owner Author

Needs documentation changes, too.

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