3 ms·
I don't think using noops to get the parser to co-operate is that strange at all, especially not something like a makefile where whitespace is significant. It's
by OskarS 10y ago
I don't think using noops to get the parser to co-operate is that strange at all, especially not something like a makefile where whitespace is significant. It's the whole point of the `pass` noop in python: the Python grammar expects there to be something inside a loop, so if you want an empty one, you have to throw a noop in there.
- xg15 10y ago> the Python grammar expects there to be something inside a loop I think this is the underlying issue - the "well, it's a list, so there's got to be something inside the list too" mindset, which makes sense in the real world but is stupid in programming. (Some bad memories at old Visual Basic times come to mind too)