在Scala中,有没有一种方法可以禁止对函数使用命名参数?
例如:
例如:
def func(num: Int, power: Int) = math.pow(num, power)
func(3, 2) // OK
func(num = 3, power = 2) // Forbidden