>>3
er,
return compare(somecomparisonmethod, f(), g(), h(), i());
Name:
Anonymous2007-09-10 0:39 ID:1vE4HxTW
Yeah, so Lisp can do some rare, out-of-the-way things pretty well. Too bad it can't do anything that actually has any use in the real world.
Name:
Anonymous2007-09-10 0:51 ID:/avzUePo
>>2
It doesn't matter, does it? The point is that the programmer can just write that. And, unlike the C "solution", it works with any number of values.
< is a function in lisp
What you are doing is passing by value >>3
'comparison' is a /similar/ function in C
Allows an infinite number of arguments (starting by 2)
You.. fail. learn some programming
Name:
Anonymous2007-09-10 1:35 ID:QCxFPARL
>>3
You can do that in C, have to signal the end of varargs somehow
no it doesn't, you cant possible implement that in C
*sigh*
Name:
Anonymous2007-09-10 1:42 ID:QCxFPARL
>>10
1) You fail at quoting, lol
2) You dont know C
You cant do variadic functions without knowing either, number of args its going to take at start, e.g. a format string or having some terminator, e.g. NULL
ONE WORD: THE USELESS DUPLICATION OF THE OPERATOR. Thread over.
Name:
Anonymous2007-09-10 9:35 ID:oBCycl64
f() < g() <= h() > i()
lol wut
Name:
Anonymous2007-09-10 11:28 ID:SZH+fbpa
>>25
ONE WORD: THE FACT I AGREE WITH YOU THAT MAKING IT A FUNCTION IS CONCEPTUALLY BETTER AND NOT REALLY LESS INTUITIVE IF YOU'RE NOT STUPID, BUT IT PRODUCES ((((())))) REGARDLESS OF BEING S-EXPRESSIONS OR M-EXPRESSIONS, AND SINCE THIS IS UNDESIRABLE, I MAY WANT TO SPECIFY THE MOST COMMON OPERATIONS SUCH AS + OR < WITH A MORE LIMITED, HACKISH, YET PARENS-FREE INFIX NOTATION THAT WILL MAKE CODE LOOK BETTER AND REQUIRE LESS BRACES MATCHING. Thread over.
Name:
Anonymous2007-09-10 12:24 ID:QCxFPARL
>>27
Thread is actually over.. he said everything.. and all in one word ;_;
Name:
Anonymous2007-09-10 14:18 ID:eFR4LHbI
C: fun();
Lisp: (fun)
OMG TOO MANY PARENS! (AND C HAS MORE PUNCTUATION ANYWAY!)
Name:
Anonymous2007-09-10 15:30 ID:SZH+fbpa
>>29
Exactly, idiot, I said it in my single-word >>27: just because be it S-expressions or M-expressions it's gonna be full of parens, it'll be a good thing to spare the parens over the most frequently called functions such as + or <.
C: fun(a(c + d) - e(f + g))
Lisp: (fun (- (a (+ c d)) (e (+ f g))))
Name:
Anonymous2007-09-10 15:36 ID:/avzUePo
>>27
But parens is pretty... () () (() ()). Little pearls of code. ^_^