当我编写一个有点复杂的方法时,我更喜欢在它上面添加一个小注释块
/*--------------------------------------------------------------+
| When I wrote this, only God and I understood what I was doing
| Now, God only knows
+-------------------------------------------------------------*/
- (void) overlyDifficultMethodToGrasp { ... }
真的是这样,从我的代码中注释掉这个方法的唯一方法就是 hitcmd + /
吗?这会导致
///*--------------------------------------------------------------+
// | When I wrote this, only God and I understood what I was doing
// | Now, God only knows
// +-------------------------------------------------------------*/
//- (void) overlyDifficultMethodToGrasp { ... }
//
我想做的是
/*
/*--------------------------------------------------------------+
| When I wrote this, only God and I understood what I was doing
| Now, God only knows
+-------------------------------------------------------------*/
- (void) overlyDifficultMethodToGrasp { ... }
*/
如您所见,这不起作用...
为什么?好吧,我认为大块//
很丑!