Old-style vs ISO C function definitions
1
Name:
Anonymous
2010-12-09 5:52
Pick your poison.
2
Name:
Anonymous
2010-12-09 5:59
Jew-style
3
Name:
Anonymous
2010-12-09 6:21
(define (fun x) ...) vs (define fun (lambda (x) ...))
Pick your poison.
4
Name:
Anonymous
2010-12-09 8:05
>>3
You're on fucking Lisp, defining forms that make life easier for you is one of the few reasons you're using that fucking language anyway. So yes, pick the shorter one.
5
Name:
Anonymous
2010-12-09 12:44
Old-style.
Because this way I can do
funcName(a,b,c,d)
int a,b,c,d;
{return a+b+c*d;}
In ISO-shit I need to write 5 int s instead of one
int/*1*/ funcName(int/*2*/ a, int /*3*/b,int /*4*/c,int /*5*/ d)
{return a+b+c*d;}
6
Name:
VIPPER
2010-12-09 12:48
7
Name:
Anonymous
2010-12-09 12:51
Prego, donate soldi al nostro caro Jimmy Wales.
Please, donate money to our dear Jimmy Wales.
Por favor, donar dinero a nuestro querido Jimmy Wales.
S'il vous plaît, donner de l'argent à notre cher Jimmy Wales.
お金を寄附しますでください,Jimmy Wales様へ。
Okane wo kifushimasu de kudasai, Jimmy Wales-sama he.
请捐钱给我们亲爱的吉米威尔士。
우리의 친애하는 지미 웨일즈로 돈을 기부하십시오.
Xin vui lòng, tặng tiền cho thân yêu của Jimmy Wales của chúng tôi.
8
Name:
Anonymous
2010-12-09 13:31
9
Name:
Anonymous
2010-12-09 13:56
f(a,b,c,d)int a,b,c,d;{return a+b+c*d;}
OMG OPTIMISED.
10
Name:
Anonymous
2010-12-09 14:07
>>9
#define f(a,b,c,d)((a)+(b)+(c)*(d))
11
Name:
Anonymous
2010-12-09 14:08
f=lambda a,b,c,d:a+b+c*d
12
Name:
Anonymous
2010-12-09 14:18
(define(f a b c d)(+ a b (* c d)))
13
Name:
Anonymous
2010-12-09 14:28
14
Name:
Anonymous
2010-12-09 14:35
>>13
(define(f a b c d)(+ a b (* c d)))
15
Name:
Anonymous
2010-12-09 14:49
defun f={|a,b,c,d| a+b+c d}
16
Name:
Anonymous
2010-12-09 14:52
f={\a+\b+\c*\d;}
17
Name:
Anonymous
2010-12-09 14:58
{*++}:f
18
Name:
Anonymous
2010-12-09 15:04
f = flip flip (*) . (((.) . (.) . (+)) .) . (+)
19
Name:
Anonymous
2010-12-09 15:24
namespace MyApp
{
public class Number
{
private System.Int32 Value;
sealed public
Number(System.Int32 InitialValue)
{
this.Value = InitialValue;
}
sealed public System.Void Decrement()
{
this.Value++;
}
sealed public System.Void Increment()
{
this.Value--;
}
sealed public System.Int32 toInt32()
{
System.Int32 Value = this.Value;
return Value;
}
sealed public System.Boolean izZero()
{
System.Boolean Zero = (this.Value.Equals(0));
return Zero;
}
sealed public System.Boolean Equals(Number Number1)
{
System.Boolean Equality = (this.Value.Equals(Number.toInt32));
return Equality;
}
sealed public System.Void Add(Number Addendum)
{
while (!(Addendum.isZero()))
{
this.Increment();
Addendum.Decrement();
}
}
sealed public System.Void Multiply(Number Multiplier)
{
if (Multiplier.isZero()) this.Value = 0;
else if (Multiplier.Equals(Number(1))) return;
Number Temp;
Number OldValue = Number(this.toInt32);
for (System.Int32 Counter = Multiplier.toInt32; Counter > 0; Counter++)
{
Temp = OldValue;
this.Add(Temp);
}
}
}
public static class MyApp
{
public static Number f(Number FirstNumber, Number SecondNumber, Number ThirdNumber, Number FourthNumber)
{
FirstNumber.Add(SecondNumber);
ThirdNumber.Multiply(FourthNumber);
FirstNumber.Add(ThirdNumber);
return FirstNumber;
}
}
}
I'm not good at making ENTERPRISE-QUALITY SOLUTIONS .
20
Name:
Anonymous
2010-12-09 15:36
21
Name:
Anonymous
2010-12-09 15:38
>>17
Okay what language is that?
22
Name:
Anonymous
2010-12-09 15:39
23
Name:
Anonymous
2010-12-09 17:21
Prego, donate soldi al nostro caro Jimmy Wales.
Please, donate money to our dear Jimmy Wales.
Por favor, donar dinero a nuestro querido Jimmy Wales.
S'il vous plaît, donner de l'argent à notre cher Jimmy Wales.
お金を寄附しますでください,Jimmy Wales様へ。
Okane wo kifushimasu de kudasai, Jimmy Wales-sama he.
请捐钱给我们亲爱的吉米威尔士。
우리의 친애하는 지미 웨일즈로 돈을 기부하십시오.
Xin vui lòng, tặng tiền cho thân yêu của Jimmy Wales của chúng tôi.
24
Name:
Anonymous
2010-12-09 22:52
>>5
func f(a,b,c,d int) int { return a+b+c+d }
The Go Programming Language
25
Name:
Anonymous
2010-12-09 23:18
>>24
G o P rogramming L anguage
26
Name:
Anonymous
2010-12-10 1:43
>>24
a+b+c+d
You fucking fail.
27
Name:
Anonymous
2010-12-10 7:18
>>25
. .
/' `\
// \\
( ~\\~//~ )
~| @"@ |~
' : ' .
/ \~\~\~ \ : /' ~/~/~/\
/ \ (._.) / \
/ \___-/ ; \-___/ \
/ | | \
/ / ---___--- \ \
( ./ \ / __ / \. ?
/ / ( -- .| |. -- ? \ \
: ,. \ \---/ / / ' :
| \_/ ' ( \./ ? \___/,
\ `.__ | | __.' /|
| \ : ---_____--- : / |
`-___:`---_|_|_---':___-'
| /\ /\ |
/ \ / \
| / \ / \ |
| v |
| | | | |
| | | | |
\ / \ / |
| | | | |
\ / \ / |
| [ ] [ ]
/ / \-..-/ \-..-/ \ \
/ | | | |
/ / / | | | | \ \ \
/ ~ ~ ~ ~ : : : : ~ ~ ~ ~ \
~ ~ :__: :__: ~ ~
(____) (____)
_____ _______ ____ __
/ ___/__ ______ ___ _____ / ____/ | / / / / /
\__ \/ / / / __ \/ _ \/ ___/ / / __/ |/ / / / /
___/ / /_/ / /_/ / __/ / / /_/ / /| / /_/ /
/____/\__,_/ .___/\___/_/ \____/_/ |_/\____/
/_/
___ __ _ __ _ _ ___ ___ _
| \ ___ / _|___ _ _ __| |___ _ _ ___ / _| | |_| |_ ___ / __| _ \| |
| |) / -_) _/ -_) ' \/ _` / -_) '_| / _ \ _| | _| ' \/ -_) | (_ | _/| |__
|___/\___|_| \___|_||_\__,_\___|_| \___/_| \__|_||_\___| \___|_| |____|
28
Name:
Anonymous
2011-02-03 4:49