Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Pissthon Algebra

Name: Anonymous 2022-10-31 18:14

So you think [1,2]*2 = [2,3]?
Think harder you dumb nigger!
Because in Python [1,2]*2 == [1,2,1,2]

Name: Anonymous 2022-11-02 10:39

>>7
C is basically a syntax for machine code, which works exclusively with integers. The reason C uses integers for bools is twofold. First hardware doesn't support booleans. Second, boolean algebra is a subset of integer algebra, so it make sense to use 1 and 0 for them, since it doesn't lead to inconsistencies.

Python on the other hand is a high level language, and None is used in a context where an integer is expected, while not being a part of integers. It looks ugly in practice and even uglier theoretically. Like everything in Python is just a part of bad language design by a person who thought that reference counting GC is a good idea and that variable assignment is the same as variable declaration.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List