Sinisterly
Coding language - Cola - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: Coding language - Cola (/Thread-Coding-language-Cola)



Coding language - Cola - ProTech - 04-24-2013

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?


RE: Coding language - Cola - Steven - 04-24-2013

At least give credits to the wiki page you took it from lol.

http://en.wikipedia.org/wiki/Cola_(programming_language)


RE: Coding language - Cola - Diamond_CnC - 04-24-2013

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.


RE: Coding language - Cola - Sunlight - 04-27-2013

Never heard of it.
Looks like the code you were writing on your thread is in the console application.


RE: Coding language - Cola - Aizen - 04-28-2013

I never heard of this before, but I'm loving the syntax.


RE: Coding language - Cola - Sunlight - 04-28-2013

What is the language meant for? Like games?