[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Say No to global-by-default (summary of the discussion)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 17 Jul 2018 23:16:05 +0200
2018-07-17 22:37 GMT+02:00 Egor Skriptunoff <egor.skriptunoff@gmail.com>:
> My suggestion is the following:
>
> A programmer must explicitly (by means of special syntax) say to compiler
> whether each variable reference is global or not.
It would annoy me.
I write many functions like the following:
function fun(_ENV)
return x^2+y+2<=r^2
end
Tihs proposal will break my programs by forcing me to write that second line as
return \x^2+\y+2<=\r^2
One should not fight one's favorite programming language, but instead
turn its peculiarities into features.
Please fork Lua, call your version Луна and leave contented Lua lovers in peace.