[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Say No to global-by-default (summary of the discussion)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 18 Jul 2018 12:01:57 +0200
2018-07-17 23:51 GMT+02:00 Egor Skriptunoff <firstname.lastname@example.org>:
> On Wed, Jul 18, 2018 at 12:16 AM, Dirk Laurie wrote:
>> I write many functions like the following:
>> function fun(_ENV)
>> return x^2+y+2<=r^2
>> Tihs proposal will break my programs by forcing me to write that second
>> line as
>> return \x^2+\y+2<=\r^2
> This new feature is optional, so it can not break any of your programs.
This is not obvious from the formulation
"A programmer must explicitly (by means of special syntax) say to
compiler whether each variable reference is global or not."
past which I did not read. If the proposal had been:
"A programmer may request the compiler to enforce the specification
(by means of special syntax) whether a variable reference is global or
it would have been obvious that the feature is optional.