crashed firefox , produced an unreadable file.
crashed firefox , produced an unreadable file.
Opened in a new window for me running firefox quantum 59.0.2 (64-bit) on a Mac.
You will need to get a copy of his /Principia Mathematica/ for his attempt to prove that 1+1=2, never mind 2+2.
Can't be proven anyway. See Gödel et al.
1+1=2 is a definition. An axiom.
Didn't crash Firefox, opened just fine in Foxit Reader.
If those are strings rather than numbers then + is the concatenation operator and the result is twotwo
In article , Rob Morley writes
That too.
Not in PHP where the concatenation operator is a .
What about javascript?
That is the worst of the lot as I discovered...
2+2 = 4 if and only if they are *interpreted as numbers*.2+2 could in fact be 22...
This is the nightmare of weakly typed computer languages designed so that idiot programmers dont have to think...with two different implementations which differ...in my case IE6 and Firefox gave different results...
Or go the other way to e.g. Pascal that is SO inflexible that you cant change e.g. a sector block of data into an array of bits so that you can exmione its headers, a set of strings to look at its data...etc etc..without predefining a union of every single possible arrangements of bits that it might be.
Thank Clapton for C, where you can force the compiler to understand that although you declared it as a string, you now want to access it as a bitfield instead..
so
char *x="Hello world";
return x[4]&32;
is a valid syntax;
That will confuse T i m he always thinks it must be 4 whenever 2+2 it must mean 2+2= as does two plus two. When I see 2+2 in a car magazine they are usually refering to how the passengers are arranged in the vehicle, and 4x4 doesn't mean 16 But some have very simple minds I guess it;s difficult for them to think beyond their limited experince.
I thing it's context-dependent.
X = 2; Y = X + 2; // Then Y will be 4, an integer
X = "TNP"; Y = X + 2; // Then Y will be "TNP2", a string.
Forget IE.
We are also assuming we are dealing with base 10 ....
Have something to add? Share your thoughts — no account required.
Ask the community — no account required