|
|
|
|
|
by skywal_l
1385 days ago
|
|
I fail to see how this is a problem. The compiler ensured that the compiled code will always work. And if you put that in you API and someone call foo with an odd perfect number, well it will fail to compile. It's conditional compilation, exactly what C does with macros. Except here, you don't have to learn an awful and honestly, sometimes, incomprehensible parallel language. Zig has some shortcomings but I fail to see how this is one. |
|