[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python built-ins versus Javascript [was Re: Old Man Yells At Cloud]

i use langages that uses py with
so you have to wrap things in a function so that it will be called

i'm tired telling beginners  : hey don't forget to declare your globals
don't forget don't forget .... and most of the time there are many ...

well they just can't declare it in the func as they have to keep track

js is good on this aspect. well you have to be careful but it is very nice.

Abdur-Rahmaan Janhangeer,

On 17 Sep 2017 14:55, "Steve D'Aprano" <steve+python at pearwood.info> wrote:

> On Sun, 17 Sep 2017 08:02 pm, Abdur-Rahmaan Janhangeer wrote:
> > as someone who really dislike js, i have to admit : python's globals are
> > really really bad !
> >
> > js is a charm at that a real charm !
> Can you explain what you think is so bad about them, and why Javascript's
> are
> better?
> --
> Steve
> ?Cheer up,? they said, ?things could be worse.? So I cheered up, and sure
> enough, things got worse.
> --
> https://mail.python.org/mailman/listinfo/python-list