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.
Reasons Python Sucks (2018)
11–20 of 74 posts
Re: Reasons Python Sucks (2018)
#12Many 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.
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:
Re: Reasons Python Sucks (2018)
#13Re: Reasons Python Sucks (2018)
#14Re: Reasons Python Sucks (2018)
#15Many 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.
Re: Reasons Python Sucks (2018)
#16Many 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.
Re: Reasons Python Sucks (2018)
#17Re: 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.
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.