1
我不知道该代码从来就是否只是写都可以称为闭合,那就是:斯卡拉 - 这是封闭吗?
withExistingDataSource(dataSourceId, dataSource => checkDataSourceTypeAndFetchDataFromAgent(dataSource, theQuery))
见下前面的方法签名:
private def withExistingDataSource(dataSourceId: Long, success: DataSource => Result): Result
我可以说:
dataSource => checkDataSourceTypeAndFetchDataFromAgent(dataSource, theQuery)
是闭包吗?
如果我摆脱了theQuery参数,该怎么办? – ardlema 2014-08-27 21:26:39
然后你有一个函数 – 2014-08-27 21:28:43