Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对比 note - let 语法糖 #16

Open
yhm-amber opened this issue Apr 9, 2024 · 1 comment
Open

对比 note - let 语法糖 #16

yhm-amber opened this issue Apr 9, 2024 · 1 comment

Comments

@yhm-amber
Copy link
Contributor

用来把赋值写在前面。但只要能传函数,赋值(调用)也是可以写在前面的。

@yhm-amber yhm-amber changed the title let 语法糖 对比 note - let 语法糖 Apr 9, 2024
@yhm-amber
Copy link
Contributor Author

先,一般赋值的例子(从上往下)
然后,变成函数应用(从外往里但从下往上)
然后,改成反过来的(从外往里且从上往下)

坏处可能是赋值目标对应不那么直观。。。还好吧,改改格式化方案?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant