Skip to content

Commit 74d1fb0

Browse files
author
Crazy
committed
fix #5253
1 parent 5e002d2 commit 74d1fb0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Reports/2026/#362-2026.01.12.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@
5252

5353
因为底层的重构方案还需要上层插件进行适配,官方又合入了个无需插件适配的临时方案作为补充:在 `FlutterPlatformViews.mm` 中实现了针对 `WKWebView` 手势识别器的递归搜索和“重启”机制,并在 `blockGesture` 中针对 iOS 26+ 启用了这个机制。
5454

55+
### 🐎 [Dart 官方再解释为什么放弃了宏编程,并转向优化 build_runner ? 和 Kotlin 的区别又是什么?](https://mp.weixin.qq.com/s/wwe9Lq392VqrCKhjfIKoXg)
56+
57+
[@Crazy](https://github.com/jiyan135960):本文主要介绍了 Dart 官方放弃宏编程改为优化 build_runner 的原因,在读本文之前,要先明白什么是宏编程。文章中介绍了 Dart 在实现宏编程的过程中试用的方案与思考,放弃的原因总结起来有三个:
58+
59+
1. 编译会卡在一个“先有鸡还是先有蛋”的死结
60+
2. 工具链双前端导致宏支持会引发“工作量爆炸 + 性能灾难”
61+
3. 即使做成了,也“高不成低不就”:替代不了 build_runner,不如直接扩展 build_runner 能力
62+
63+
文章最后还对比了 Kotlin 的 Compiler Plugins、KSP 与 Swift 的 Swift Macros 的差距,总的来说 build_runner 还有很长的一段路要走。
64+
5565
## 工具
5666

5767
> 开发过程中常用的工具,及一些新工具的介绍

0 commit comments

Comments
 (0)