Hi,
has anybody tried out the new 5.3.0 RC1 php release and played a bit with anonymous functions?
I would like to know if you can use it like python for functional programming.
E.g., can you do something like:
def sinus(x):
if x<=0.1:
return x
else:
return (lambda x: 3*x-4*x*x*x)(sinus(x/3))
print sinus(172.0)
Or better, can you do all the cool stuff like in python or lisp? Are there any limits? Unfortunately I don´t have a better example in mind. :)