Skip to content

Commit 197ab85

Browse files
committed
Writing declarative code using Result Extensions
1 parent 07a79c1 commit 197ab85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Reports/#6.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ iOS 11 出来很久了,适配的文章也很多,第一眼看到的时候我
5454

5555
在开发中,大量的元素都需要一个外部委托,如果它们都委托给视图控制器,控制器将迅速的膨胀起来。但我们可以尝试另一种做法,控制器将任务委托给单独的第三方对象,自身不包含任何业务逻辑,只负责根据数据提供 UI 逻辑交互。如此便能使控制器保持小巧灵活。
5656

57+
### [Writing declarative code using Result Extensions](https://medium.com/@tyronemichael/writing-declarative-code-using-result-extensions-1ec45474101f)
58+
59+
[Result 类型](https://github.com/antitypical/Result)写 Extension 来编写声明式代码,创建高度灵活的代码和声明式 API,易于维护、阅读和测试。
60+
5761
## 工具
5862

5963
### [Transformer:EASY iOS NSAttributedString!](https://github.com/andresinaka/transformer)

0 commit comments

Comments
 (0)