News for hackers. Stuff that matters.
Re:Looking at Zig Programming Language by karmakaze on Tuesday April 05, 2022 @01:56PM (#30922478)
One 'catch' that makes me uncomfortable with Zig is the camel/underscore-insensitivity. How do you find all references of a method? Does your editor/IDE know how to find writeAll when I search for references of write_all? Do you have lint rules that are enforced for a project's source?
Re:Looking at Zig Programming Language by lhorie on Tuesday April 05, 2022 @02:30PM (#30922942)
Re:Looking at Zig Programming Language by elcritch on Tuesday April 05, 2022 @09:53PM (#30927567)
Correct, though the case insensitivity hasn't ever cause me issues in Nim. Searching is easy or at most takes a simple regex. It's actually saved me from a few dumb overshadowing issues (as in "you can't redefine 'is_active' see 'isActive' here").
Re:Looking at Zig Programming Language by nrclark on Tuesday April 05, 2022 @02:12PM (#30922715)
Is is possible you're mixing up Zig and Nim?
Re:Looking at Zig Programming Language by AnIdiotOnTheNet on Tuesday April 05, 2022 @01:59PM (#30922530)
Unless something has drastically changed since I last used Zig, it doesn't have the feature you're talking about except in the case of number literals. `write_all` is a completely different identifier from `writeAll`.