Provide multiple arguments and shortened command options.
提供多个参数和缩写的命令选项。
I think this symmetry in polymorphic dispatch on multiple arguments is much more elegant than is the prior style.
我认为对多个参数进行多态分派所具有的这种对称性比先前的样式要雅致得多。
Back to the API: the PPE can pass a single pointer into the program, so multiple arguments have to be bundled up. My solution is this.
现在回到API上来:PPE只能向程序传递一个指针,因此多个参数必须要捆绑在一起传递。
Avoid methods with more than 5 arguments. Use structures for passing multiple arguments.
避免超过5个参数的方法。使用结构传递多个参数。
Avoid methods with more than 5 arguments. Use structures for passing multiple arguments.
避免超过5个参数的方法。使用结构传递多个参数。
应用推荐