Live data from Hacker News

Reasons Python Sucks (2018)

hackerfactor.com

11–20 of 74 posts

Re: Reasons Python Sucks (2018)

#11
post #7

Many of these things are annoying, but I wanna check something.... Lists in python are called lists because they're linked lists right? They are not called arrays because they are a different data structure. Edit: Well TIL! Thanks everyone.

lists are arrays with different data types allowed per index

Re: Reasons Python Sucks (2018)

#12
post #7

Many of these things are annoying, but I wanna check something.... Lists in python are called lists because they're linked lists right? They are not called arrays because they are a different data structure. Edit: Well TIL! Thanks everyone.

> Lists in python are called lists because they're linked lists right?

No. At the C level in the interpreter they are arrays of object pointers.

> They are not called arrays because they are a different data structure.

No. They're not called arrays because Python uses the name "array" for something else:

https://docs.python.org/3/library/array.html

Re: Reasons Python Sucks (2018)

#15
post #7

Many of these things are annoying, but I wanna check something.... Lists in python are called lists because they're linked lists right? They are not called arrays because they are a different data structure. Edit: Well TIL! Thanks everyone.

[deleted]

Re: Reasons Python Sucks (2018)

#16
post #7

Many of these things are annoying, but I wanna check something.... Lists in python are called lists because they're linked lists right? They are not called arrays because they are a different data structure. Edit: Well TIL! Thanks everyone.

[deleted]

Re: Reasons Python Sucks (2018)

#18

"Reason 7: Pass By Object Reference": isn't this the case of almost every GC'd language? Java, JS, PHP, Swift, and C# all do so, although C# doesn't if your type is a "struct" not a class. Go is the only popular exception I can think of.

[deleted]

Re: Reasons Python Sucks (2018)

#19

"Reason 7: Pass By Object Reference": isn't this the case of almost every GC'd language? Java, JS, PHP, Swift, and C# all do so, although C# doesn't if your type is a "struct" not a class. Go is the only popular exception I can think of.

any language with immutability by default, say Clojure.
Post reply on HN