Re: [POLL] Do you like "then,do,end" or "{ }"?
Posted: Tue Aug 06, 2013 3:04 pm
what about use unrelated words instead of "end" and "{}" like:
Code: Select all
if a = b then
draw()
cat
Code: Select all
if a = b then
draw()
cat
I think you meantjjmafiae wrote:what about use unrelated words instead of "end" and "{}" like:
Code: Select all
if a = b then draw() cat
Code: Select all
if a == b then
draw()
cat
jjmafiae wrote:Code: Select all
if a = b then draw() cat
Code: Select all
if(a.getValue().parseInt().toString().isEqual(b.getValue.parseInt().toString()){
doNothingReally();
}
What about C++?XHH wrote:jjmafiae wrote:Code: Select all
if a = b then draw() cat
Just thought I should turn that into Java to make it more readable.Code: Select all
if(a.getValue().parseInt().toString().isEqual(b.getValue.parseInt().toString()){ doNothingReally(); }
(random burn on Java)
Code: Select all
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int a = 5;
int b = 5;
if (a == b) {
cout << "Hello, World" << endl;
}
return 0;
}
I agree. I don't like C++, but I do like Java! Java's a great language.I like the fact that you can string stuff like this together:XHH wrote:But once you really get into C++.... omg...
Code: Select all
obj = new ClassThingy()
obj.isTrue = doThis().doThat().doOther().box2d().libgdx()
That's not really a property of Java, you can do that in any language. (Except maybe PHP.)Eamonn wrote:I like the fact that you can string stuff like this together:
Code: Select all
obj = new ClassThingy() obj.isTrue = doThis().doThat().doOther().box2d().libgdx()