关于Erlang里没有global variable的吐槽

本文引用了某位专业人士的观点,讨论了Erlang不支持全局变量这一特性,并提出这实际上是一种有益的设计选择而非缺陷。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当我也开始为erlang不支持全局变量开始感到不爽的时候,看到了某人的吐槽:

http://osdir.com/ml/erlang-questions-programming/2002-12/msg00142.html

[quote]
I don't know a single professional programmer that can't get by without
global variables. Furthermore, if a programmer feels he/she _cannot_ get
their work done without globals they (IMHO) either need to: 1) graduate from
college and begin working in the industry, or 2) find another career.

Erlang may need work in some areas, but the lack of globals and the inclusion
of things like single-assignment variables are _features_, not bugs. I would
hate to see these features added so that Erlang can turn into every other
language out there. The person that refuses to pick it up because it lacks
global variables and the like may never "get it"...

-Rick
[/quote]

好吧,这人(是不是大牛?)吐槽说如果你觉得没有全局变量没法活那么你要么是刚毕业参加工作的小朋友要么劝你换职业。。。

顿感无力。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值