Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ngrilly
on Sept 3, 2023
|
parent
|
context
|
favorite
| on:
Focus: A simple and fast text editor written in Ja...
What is annoying with errors in Zig?
alwaysbeconsing
on Sept 3, 2023
|
next
[–]
They seem to be specifically referring to the
compiler
error (as in, prevents compilation) for unused local variables. See discussion here:
https://github.com/ziglang/zig/issues/335#issuecomment-10011...
Modified3019
on Sept 3, 2023
|
parent
|
next
[–]
Yeesh, that's good to know. With the dev response basically doubling down on ideology and ignoring reasonable protest, that's definitely an ecosystem to not sink time into.
Gibbon1
on Sept 3, 2023
|
root
|
parent
|
next
[–]
My thought about unused variable is the compiler should assume someones trying to debug something and not optimize them out.
ngrilly
on Sept 3, 2023
|
parent
|
prev
|
next
[–]
You're right. I read too fast. Coming from Go, I'm used to errors on unused local variables, and like that Zig does the same.
metaltyphoon
on Sept 3, 2023
|
prev
[–]
I don't think they can carry information.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: