News for hackers. Stuff that matters.
Re:Goodbye to the C++ Implementation of Zig by booleandilemma on Thursday December 08, 2022 @06:13PM (#33915101)
I like Go as a language in the abstract sense, but the experience of writing Go code is so tedious to me. Refusing to compile if there's an unused variable or unused import is too harsh - at least give me the option to make these things warnings.
Re:Goodbye to the C++ Implementation of Zig by sidlls on Thursday December 08, 2022 @07:27PM (#33915833)
Having unused variables or unused imports makes the code dirty and should be treated as errors. It's one of the (few) good things about Go.
Re:Goodbye to the C++ Implementation of Zig by IlliOnato on Friday December 09, 2022 @07:05AM (#33920370)
In production code? Absolutely. While you experiment, write throw-away code, debug? Hell no!
Re:Goodbye to the C++ Implementation of Zig by wtetzner on Friday December 09, 2022 @09:14AM (#33921394)
Sure, but it’s a lot of extra friction when iterating/debugging.
Re:Goodbye to the C++ Implementation of Zig by s_c_r on Tuesday December 20, 2022 @01:01PM (#34069653)
My usual approach is to comment stuff out while debugging/developing. Works well.