Semicolon after the method name in Objective-C implementation file

前端 未结 6 1702
醉话见心
醉话见心 2020-12-01 13:39
- (void) designImageViewNow; {

//some code here

}

Is it correct to write semicolon ; just after the method name before body brackets

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 14:32

    Code should be as clean and simple as possible.
    Not only does this add litter to the code but confuses people (like me) who now have to spend the time to see if it is a valid practice.

提交回复
热议问题