Skip to content

Commit 839afc6

Browse files
committed
add note for plai
1 parent 810bee3 commit 839afc6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_posts/2025-09-21-programming_languages_application_and_interpretation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,3 +893,13 @@ Simula开创了OOP,Smalltalk实现了一个纯面向对象语言。
893893
对类型规则进行编码,使用Prolog的语法。这样可以将Prolog用作类型检查器和类型计算器,以及程序合成器。
894894

895895
环境在这种情况下是绑定关系的列表。
896+
897+
### Visualizing Prolog Execution
898+
899+
ref: [Prolog 可视化](https://www.youtube.com/watch?v=pLcfMEQjMqM)
900+
901+
## Generators
902+
903+
### A Canonical Example
904+
905+
Generator和函数是有差异的。运行会在yield处暂停,并在下一次调用时从暂停处继续。这类似于一个闭包,其中的变量都存储于闭包中。

0 commit comments

Comments
 (0)