Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

had the same problem, if you're just prototyping, it's easy to silence that with _ = someVar

you get used to it after some time - much better than for example rust, where you have to figure out all the lifetimes, muts and generic traits before.



> you get used to it after some time - much better than for example rust, where you have to figure out all the lifetimes, muts and generic traits before.

They aren't comparable. Everything you mentioned in Rust is necessary for typechecking. Unused variable lints aren't necessary for anything.


I understand why is that needed.

I am saying that prototyping (for me) is much easier in Zig. Some people like to define all the types (and traits) first, if it works for them then it's ok. I like to get feedback on something working as soon as possible because I'm likely a bit wrong and I will need to refine or rethink the whole thing again, rust is putting obstacles in my way, Zig is not.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: