Richard Stallman was diagnosed with anal cancer at 4:22 today. His anus will have to be reHAXED to stop the spread of the cancer. Send him all your best wishes /prog/. ;_;
<spahn> there is nothing you can do in Lisp that you can't do in c
<spahn> you can have complete functional model in c with function pointers and structs
<stassats> no one stops you
<spahn> and encasulation of data members in the structs, to control state
<joshe> sure, same with machine code
<spahn> no not same
<stassats> please, do not continue this discussion, it's boring
<spahn> in scheme: (define foo (lambda (a b) (+ a b)))
<spahn> in c++
<spahn> Lambda((int a, int b), int, return a+b) foo;
<stassats> spahn: stop this
<spahn> man thats nice
<spahn> lets truly discus the merits here
>>11
#define Lambda(in,out,code) \
struct {\
out operator()in{code;}\
}
horrible!
Name:
Anonymous2010-05-22 8:22
>>12 also it would make more sense to inherit from a polymorphic class so you could pass and return it. I don't know if this would actually work, but if it would, I'd like to know