News for hackers. Stuff that matters.
Re:An intro to Zig's integer casting for C programmers by UncleMeat on Wednesday May 12, 2021 @08:59AM (#27129788)
Best practice for languages with this "var" approach is to use it when the type is obvious or irrelevant and to explicitly declare the type when it is non-obvious and relevant.

If you are reviewing code and can't instantly tell what the type is for a variable, ask the author to explicitly include the type. Problem solved.

There are no comments on this comment yet.