Coding language - Cola 04-24-2013, 11:34 PM
#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:
Do you guys ever have heard of it before?
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?





![[Image: crypto-gambling.net-logo-205x40.png]](https://crypto-gambling.net/wp-content/uploads/2020/10/crypto-gambling.net-logo-205x40.png)
![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: cat_wmv.gif]](http://s18.postimg.org/wvo2u3lex/cat_wmv.gif)
