call-by-name function is evaluated before invokde

前端 未结 0 880
伪装坚强ぢ
伪装坚强ぢ 2021-01-28 18:00

I have a logic look like this:

def process[T](f1: => T, f2: => T): T = {
  Try { /*Do Something*/ } match {
    ca         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题