這次改變1 重點真不是方法長短 :
-public func readLine(stripNewline stripNewline: Bool = true) -> String?
+public func readLine(strippingNewline strippingNewline: Bool = true) -> String?
siuying
積分 0
no, they automatically convert Objective-C convention to Swift conventions. So when you use Swift, you write eloquent Swift code, and when you write Objective-C, you write eloquent ObjC code.
I think this is one of a kind and Apple is the first one did something like that, impressive feat. They even translate C based API to object like API: Import As Member1
siuying
積分 2
Redux 在文件 Async Actions1 中有說到,這時候通常用 redux trunk middleware 寫一種叫 Action Creator 的東西。儲存理應放在 Store 。
不喜歡 Redux 的地方就是這種造一大堆新的 abstraction 出來,而且也不是唯一的做法,新手不知道對不對。