Why are Perl source filters bad and when is it OK to use them?

后端 未结 7 1512
Happy的楠姐
Happy的楠姐 2020-11-30 07:55

It is \"common knowledge\" that source filters are bad and should not be used in production code.

When answering a a similar, but more specific question I couldn\'t

7条回答
  •  攒了一身酷
    2020-11-30 08:04

    The problem I see is the same problem you encounter with any C/C++ macro more complex than defining a constant: It degrades your ability to understand what the code is doing by looking at it, because you're not looking at the code that actually executes.

提交回复
热议问题