rust 语法噪音这么多, 能写复杂项目吗?

Views :
Update time : 2025-06-24 16:55:18

如果你经常开发前端typescript ,你就会发现,rust与typescript语法太像了。

你所谓的噪音无非是ts直接用foreach而rust需要先迭代加iter(),然后结束时加collect()。

至于你举例的那些代码里,常用编程并不是高频出现,偶尔用用也没啥。

写熟练了都无所谓了。

但是你有没有发现,rust结尾问号,比try catch省去多少烦恼啊? 还有fn pub关键字,比j***a c#的public private ,比js的function,每天得少敲几千个字母,对手指尖的损伤…。

rust 语法噪音这么多, 能写复杂项目吗?
Related News
Read More >>
Blog Post With Youtube Video 大厂后端开发需要掌握docker和k8s吗?
2025-06-29 01:40:15
大厂后端开发需要掌握docker和k8s吗?...
Blog Post With Youtube Video 在杭州2021年买房的你,房子亏了多少了?
2025-06-29 01:00:15
在杭州2021年买房的你,房子亏了多少了?...
Blog Post With Youtube Video 2025年现在开发php项目选择lar***el框架好还是thinkphp框架好?
2025-06-29 01:15:16
2025年现在开发php项目选择lar***el框架好还是thinkphp框架好?...
Blog Post With Youtube Video 为什么macOS软件生态不敌Windows?
2025-06-29 01:25:16
为什么macOS软件生态不敌Windows?...

Leave Your Message