Apr. 14th, 2005

juan_gandhi: (Default)
As Stepanov noted once, associative laws are the basis of enabling computational parallellism.

Lessons learned, and comments in java libraries all tell you to obey the laws - equality, e.g., must be symmetric, reflexive, transitive; monotonous math functions must be monotonous (hence adoption of IEEE arithmetics as opposed to what fast and cheap math processors offer), addition and multiplication must be "strictly" commutative and associative, etc; and also, no, NO operators overriding. (Would not it be cool to have an operator for equals()? is not it binary?)

Then, all of a sudden, you discover the obvious truth that String Addition Is Not Commutative...

So, what's the point of all this fuss about the rules? String addition is not an addition, friends. It is not.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12 13 1415 161718
1920 2122 232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 24th, 2025 07:47 am
Powered by Dreamwidth Studios