link中满足相同输入的函数必然输出相同,是不是就没有副作用了?是不是可以并行调用?
不一定,比如:private int i;int add(int a, int b);{i = a + b;return a + b;}这就有副作用。