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

(len) builtin #19

Open
kiedtl opened this issue Sep 12, 2024 · 1 comment
Open

(len) builtin #19

kiedtl opened this issue Sep 12, 2024 · 1 comment
Labels
lang-new New language feature proposal

Comments

@kiedtl
Copy link
Owner

kiedtl commented Sep 12, 2024

It'd have niche uses, such as getting the length of a buffer without resorting to hard-coding the value.

@kiedtl
Copy link
Owner Author

kiedtl commented Sep 12, 2024

Bit of a misnomer. Don't want it to be confused with actually taking the length of a slice. Maybe (comptime-len)?

@kiedtl kiedtl added the lang-new New language feature proposal label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-new New language feature proposal
Projects
None yet
Development

No branches or pull requests

1 participant