在PHP中,您可以选择在函数定义中使用&通过引用传递参数:
&
someFunction($byValue, &$byReference) { // $byValue is passed in by value // $byReference is passed in by reference due to the preceding & }
在科特林这可能吗?如果没有,有人知道它是否已计划吗?