Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

is it ok to do this

Name: Anonymous 2007-06-23 13:51 ID:6CyOAcE6

instead of

int f(a) {
if(a == 3) return 1
else return 0;
}

to write

return (a == 3);

? thanks in advance

Name: Anonymous 2007-06-24 19:24 ID:lvFW2NVj

You are not an EXPERT ENTERPRISE PROGRAMMER.

Comparison cmpAEq3 = new Comparison(new ComparisonOperator(OperatorSignature.getInstance().getSignatureForString("==")));
cmpAEq.bindLeft(a);
cmpAEq.bindRight(Number(3));
FunctionResult res = new FunctionResult(new BooleanResult(cmpAEq.performComparison().toBoolean()))
return FunctionResult.getValue();

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List