3 ms·
> Why is it "a bad idea" if the loop happens at compile time rather than runtime? Because you need at least one reliable tool to tell you when there's a proble
by naasking 10y ago
> Why is it "a bad idea" if the loop happens at compile time rather than runtime?
Because you need at least one reliable tool to tell you when there's a problem, and if that tool isn't a compiler, what are you left with? When do you realize that a long compilation is actually in an infinite loop and not simply a long compilation? How do you debug the cause of an infinite compilation?
These questions may have answers, but current compilers aren't designed to address them.