News for hackers. Stuff that matters.
Re:ReactiveCocoa for a better world by wsc981 on Friday May 04, 2012 @02:58PM (#3929804)
I guess the blocks-in-blocks code can get quite unreadable at times. Personally I like to store blocks in variables in such situations and add the variable to a function that required the block parameter. Makes code so much more readable when blocks are nested.
Re:ReactiveCocoa for a better world by joshaber on Friday May 04, 2012 @03:02PM (#3929818)
Yeah, we played around with a bunch of different styles, including defining the block before its use. It looked cleaner but the code locality of defining them inline won.