最近在读苹果的文档,Programming with Objective-C,看到Conventions这节里面写到:
If a method includes an error pointer parameter to be set if an error occurred, this should be the last parameter to the method. If a method takes a block, the block parameter should be the last parameter in order to make any method invocations as readable as possible when specifying a block inline.
想问一下如果一个method同时具有error 和 block类型的参数,哪个应该应该放在最后一个?
If a method includes an error pointer parameter to be set if an error occurred, this should be the last parameter to the method. If a method takes a block, the block parameter should be the last parameter in order to make any method invocations as readable as possible when specifying a block inline.
想问一下如果一个method同时具有error 和 block类型的参数,哪个应该应该放在最后一个?