为什么 lua 在游戏开发中应用普遍?

Views :
Update time : 2025-06-25 19:15:11

因为 QuickJS 这样的东西没有早出来几年,否则根本没有 Lua 什么事情,归根揭底,Lua 并不是一门好语言: 作用域默认是 global 的,不是 local 的,但凡最近三十年发明的语言,变量和函数定义基本都是默认 local 的作用域 ,lua 这种默认 global 的设计,强迫你到处写满 local,简直是一口气直追 50 年前的古圣先贤。

索引从 1 开始:记忆里只有 Pascal / QBasic 是这么做的,但 pascal 事实上允许索引从任意位置开始(从 0 / 1 …。

为什么 lua 在游戏开发中应用普遍?
Related News
Read More >>
Blog Post With Youtube Video vue + tsx 的开发体验能追得上 react+tsx么?
2025-06-28 04:50:09
vue + tsx 的开发体验能追得上 react+tsx么?...
Blog Post With Youtube Video 为什么m4max可以轻松堆128g显存,nvidia消费端显卡却长期被限制在24g?
2025-06-28 04:55:10
为什么m4max可以轻松堆128g显存,nvidia消费端显卡却长期被限制在24g?...
Blog Post With Youtube Video 有没有什么好用的***分享?
2025-06-28 04:30:10
有没有什么好用的***分享?...
Blog Post With Youtube Video 有性瘾女朋友每天都要很多遍要不要分手?
2025-06-28 05:20:09
有性瘾女朋友每天都要很多遍要不要分手?...

Leave Your Message