Python handles globals badly.

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Sep 9 01:32:37 CEST 2015


On 09/09/2015 00:20, MRAB wrote:
> On 2015-09-08 23:41, Mark Lawrence wrote:
>> On 08/09/2015 18:41, MRAB wrote:
>>> On 2015-09-08 15:31, Ian Kelly wrote:
>>>> On Tue, Sep 8, 2015 at 5:55 AM, Vladimir Ignatov <kmisoft at gmail.com>
>>>> wrote:
>>>>>>> I had some experience programming in Lua and I'd say - that language
>>>>>>> is bad example to follow.
>>>>>>> Indexes start with 1  (I am not kidding)
>>>>>>
>>>>>> What is so bad about that?
>>>>>
>>>>> It's different from the rest 99.9% of languages for no particular
>>>>> reason.
>>>>
>>>> It's not "different from the rest 99.9% of languages". There are many
>>>> languages that use 1-based indexing, e.g. Matlab, Pascal, Fortran.
>>>>
>>> In Pascal you specify both the lower and the upper bounds.
>>>
>>
>> I vaguely recall that in CORAL66/250 you specified both bounds and the
>> lower bound could be negative.  Do other languages allow this or does
>> the lower bound always have to be positive?
>>
> If you're allowed to specify both bounds, why would you be forbidden
> from negative ones?

I haven't the faintest idea :)

>
> A better question would be whether there's a language that allows you
> to specify a lower bound, but insists that it's non-negative.
>

Ditto :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Python-list mailing list