Scala, Maven, and preprocessors

前端 未结 4 511
梦毁少年i
梦毁少年i 2021-01-20 00:46

I know all of the philosophical arguments against preprocessors and macros in Java. I don\'t agree that just because some may abuse a language feature, it should be excluded

4条回答
  •  渐次进展
    2021-01-20 01:27

    IMHO the "correct" way to achieve this would be to write a compiler plugin to perform the substitution, but is it really worth that amount of effort?

提交回复
热议问题