Login Register






Coding language - Cola filter_list
Author
Message
Coding language - Cola #1
Hello guys, I just heard about this coding language called "Cola", and it looks like something for me.

It is a coding language similar to Java and C# with some higher level features of Perl and Ruby including first-class regular expressions.

If you want's to make a Cola application saying "Hello world" (As we always uses as an example) It can be done in several ways, this is just three of them:
Code:
// C/Perl-style without classes // Cola package/global methods are static by default, void by default string mesg = "Hello world\n"; main() { print(mesg); }

Code:
// Cola OO-style // classes, methods and constructors public by default, fields private by default class Hello { string mesg; new() { mesg = "Hello world\n"; } static void main() { print(mesg); } }

Code:
// Cola OO-style, explicit scope access (C++ style) // classes, methods and constructors public by default, fields private by default class Hello { protected: string mesg; public: new() { mesg = "Hello world\n"; } static void main() { print(mesg); } }


Do you guys ever have heard of it before?

Reply

RE: Coding language - Cola #2
At least give credits to the wiki page you took it from lol.

http://en.wikipedia.org/wiki/Cola_(progr..._language)

Reply

RE: Coding language - Cola #3
But nope i've never heard of it in my life. and im not a coder but i would be pissed if someone stole my code.
[Image: cat_wmv.gif]

Reply

RE: Coding language - Cola #4
Never heard of it.
Looks like the code you were writing on your thread is in the console application.

Reply

RE: Coding language - Cola #5
I never heard of this before, but I'm loving the syntax.

Reply

RE: Coding language - Cola #6
What is the language meant for? Like games?

Reply