News for hackers. Stuff that matters.
Re:W3schools.dev Redirects to Mozilla Developer Network by umanwizard on Friday March 01, 2019 @10:06AM (#19281243)
The subway does the job of a car in 99% of cases. Doesn't mean they're the same thing. I also wouldn't appreciate an article about subways with the title "Cars".

I have literally never seen or heard of a definition of array according to which lists are arrays -- can you cite one?

Re:W3schools.dev Redirects to Mozilla Developer Network by anisppp on Friday March 01, 2019 @10:15AM (#19281329)
Can you cite a common definition of “array” other than a bare minimum of being randomly accessible? (Nothing else is pinned down. Fixed vs variable length, single vs mixed type, or even underlying data structure (cf NSArray)).

By the only universal definition I can think of, python lists are arrays.

Python lists most certainly meet the mathematical definition of array (ie name by index)

Re:W3schools.dev Redirects to Mozilla Developer Network by umanwizard on Friday March 01, 2019 @10:18AM (#19281353)
It seems you're right. Python lists are arrays -- I didn't know that.

That makes my point even stronger. The article about "Python Arrays" directly claims that Python Arrays don't exist, which is apparently wrong!

The whole point is that I came away from the article believing information that is false.

Re:W3schools.dev Redirects to Mozilla Developer Network by ben509 on Friday March 01, 2019 @10:50AM (#19281709)
Arrays are commonly an implementation, while lists are the mathematical or logical structure.

Same as how a hashtable is used to implement a mapping.