
Zig Programming Language & Linters • Andrew Kelley & Jeroen Engels
GOTO - The Brightest Minds in Tech
00:00
The Importance of Simplifying Functions
A linter can either get false positives or by doing a lot of static analysis to figure out whether this is okayed. But then it would only work if the programmer cooperated and wrote functions that did not have side effects, right? Yeah. You could also have the linter be very smart about it, do a lot of extensive research. Like does this function have any side effects? Does it access global variables that the other function also does? And that is very, very tricky to do. I think in some cases you will reach some missing information.
Transcript
Play full episode