-
Notifications
You must be signed in to change notification settings - Fork 219
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
Remove comptime feature #2040
Comments
Please add issues related to removing comptime here |
I think |
I just hit a use case where a comptime Field might still be helpful...
Isn't the only way to do this with comptime Fields (and adding support for comptime Field arithmetic)? Edit: spread function:
|
I don't believe we support initializing arrays with a |
Oh. Whoops. Can we generate constants from other constants at compile time? That's what this example would need. (I.e. specifying the length of an array at compile time, by doing simple arithmetic on other constants). |
Not if they're stored in local variables or parameters, that's the scope of comptime. Constants are limited to the type system, globals, and basic arithmetic on those. |
^ I was trying something like this.
|
Problem
This is a tracking issue to remove comptime from the language.
Happy Case
.
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: