-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
make sizeof a builtin #5406
Comments
I agree, but |
add |
Yeah, we might have to do that. It's hard to accept any alternate names for this function. Maybe |
I think I the core vs base distinction is ok and we could have the base version default to calling the core one. |
Since the role of
sizeof
is to tell you the size of the representation of an object, it seems sensible to make it a builtin since the system itself is in the best position to know this. This is one of the few things that really should not be a generic function. In particular, it would be nice to be able to do things likesizeof((1,2//3))
and get a correct answer.The text was updated successfully, but these errors were encountered: