|
|
|
|
|
by lolinder
552 days ago
|
|
Meanwhile in Haskell they introduced typed holes in order to allow you to compile more types of programs that aren't yet fully finished. I'm all for preventing this kind of thing from making it into the main branch, but a compiler error by its nature blocks compilation, which forces weird shenanigans like commenting out lines of code or adding arbitrary meaningless uses. Why is that better than a compiler warning (made mandatory in CI)? |
|
In some C code where I have to suppress an unused variable warning (for example to a pthread callback), I just do (void)arg at the top of the function.