Do some Functional programming constructs reduce Debuggability?

前端 未结 5 1155
轮回少年
轮回少年 2021-01-02 06:14

I\'ve heard that the following features reduce debuggability (because they are anonymous and debuggers cannot trace it well)

  1. Anonymous Classes
  2. Inner C
5条回答
  •  长情又很酷
    2021-01-02 06:57

    I don't particularly believe this is the case, from my perspective. I'm using the functional features of Scala, which compiles to run on the Java Virtual Machine. Debuggers such as Intellij's work with this properly.

    Having said that, some code constructs are presented in a different fashion to how you'd normally expect. Function blocks appear in some cases as inner classes. Lists appear as head entity plus a tail list (or it might be the other way around - I've only just started with this!).

提交回复
热议问题