Comments (1)
老实说,其实我个人是不大喜欢链式语法:一来一行的代码加长了,我更喜欢一行的代码尽量的少;二来不利于调试,当出现问题后不知道是哪个方法处问题了。
其实当时也讨论和比较过是单独开辟出一个namespace来实现这种扩展还是用tg开头的函数来实现,最终的结果还是选择目前的解决方案。
至于为什么又提供and方法其实也是为了照顾那些链式语法控,你可以理解为这是一个语法糖。如果您希望提供一个tg的namespace的话是否可以考虑添加这个语法糖到这个库中呢?一起共建吗。
from tangramkit.
Related Issues (20)
- 布局动画问题 HOT 2
- tg_setSubviews失效
- 你好,我是跟着你的框架学的ios开发,有一个问题想请教一下 HOT 4
- 希望能实现tg_min功能,让视图宽度等于多个视图宽度的最小值,谢谢 HOT 1
- iOS 13 TGBorderline 未适配 Dark Model HOT 1
- 测试环境iOS13, FlowLayout 的 对齐问题 HOT 1
- 在Controller中合适才可以拿到准确的frame? HOT 2
- 【BUG】非布局视图layoutSubviews相关 HOT 1
- 【需求】流动布局`TGFloatLayout`添加动态边距 HOT 1
- 【需求】FlexLayout支持 HOT 1
- 【BUG】布局视图响应事件并未传递 HOT 1
- 请问为什么不更新了 HOT 4
- CELL复用问题 HOT 1
- mach-o包体积过大, 远超snapkit HOT 1
- iOS 15 上 UITableViewCell 自适应 cell 发生某一行加载不出来
- 布局高度问题,希望还能得到作者回复 HOT 4
- 布局高度问题,希望作者解答一下 HOT 14
- There are quite a lot of functions
- iphone 12以上,scrollview中的layout隐藏视图,页面卡死 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tangramkit.