---
title: "关于Erlang里没有global variable的吐槽"
author: "standalone"
date: "2012-12-26T14:06:42Z"
tags: []
categories: ["编程语言"]
slug: "erlang-global-variable"
draft: true
lastmod: "2012-12-26T14:06:42Z"
id: 1754416
url: "https://standalone.iteye.com/blog/1754416"
---

当我也开始为erlang不支持全局变量开始感到不爽的时候，看到了某人的吐槽：

http://osdir.com/ml/erlang-questions-programming/2002-12/msg00142.html


> 
> 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
> 


好吧，这人（是不是大牛？）吐槽说如果你觉得没有全局变量没法活那么你要么是刚毕业参加工作的小朋友要么劝你换职业。。。

顿感无力。