Search found 2 matches

by Choonster
Wed Oct 09, 2013 10:05 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1275: "int(pi)"
Replies: 95
Views: 29330

Re: 1275: "int(pi)"

Monika wrote:
SomeoneSomewhere wrote:Just don't use PHP: 4 ^ 3 returns 7 (it's bitwise XOR).

Is there even any language where ^ (if it exists at all) does not mean XOR and does mean "to the power of"


Lua [lua.org] (and MoonScript [moonscript.org], which compiles into Lua) uses ^ for exponent instead of XOR.
by Choonster
Sat Sep 28, 2013 5:51 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1270: Functional
Replies: 171
Views: 47566

Re: 1270: Functional

In conclusion, everyone should use Python, since it allows for any programming paradigm you want. ;) ... except it doesn't support tail recursion (Guido doesn't like it). If you want a dynamically typed scripting language that lets you choose your paradigm and has proper tail calls/tail recursion; ...

Go to advanced search