python’s yield is useful in fib
RIIR
RIIP
but I haven’t figure how to get it from recursive function…
may help,use struct + closure function to acted like outside。
in py,we make a iter,then yield。then add a function at its outside。
but in rust,we change the form of function。
^ the above content can be found from
the algebra of programming
foldl + op can get new op.
事实上, 考虑这样一个过程
用线性的写法就是
换句话说就是 fold

下面简单说说为啥在无 GC 语言 c/cpp/rust 里生成器是老大难问题.(等 zig 1.0 我再考虑补上)
cpp 在 20 有了 co_ 系列 keyword
rust 这个也 nightly 了
考虑最简单的问题
 
Loading...
Steven Lynn
Steven Lynn
喂马、劈柴、周游世界
最新发布
我与 Dify 的半年
2025-3-9
我的2022年终小结
2024-11-9
记录雅思考试经历与一点学习心得
2024-11-9
Hackergame 2024 思路小结
2024-11-9
黑客松、日本、入职:我的2024下半年的总结
2024-11-9
NotionNext:基于Notion和NextJS的开源博客
2024-11-9