|
|
|
|
|
by cluckindan
337 days ago
|
|
That is exactly the kind of unfounded, strawman-riddled criticism I was after ;-) What does an algorithmic task such as array comparison have to do with language syntax? The answer is nothing. Sure, some languages might have builtins for comparing certain things, or doing intersections/differences, but those only apply to arrays of primitives, and even in those cases the utility of the builtins completely depends on the use case, and those builtins still have nothing to do with syntax. |
|
I guess you've not written much python, or just not used any custom types in lists if you have.
In this case, the builtins are syntax, namely the `==` operator. There's a uniform syntax for comparing two objects for equality.