Scala

Pages: 12
Forget C++!!!!
C++ will never be used in the future!
Nobody cares about performance and all other languages have better performances than C++
If someone wants to do system programming, it will do in plain C
C++ overloaded operators don't provide shot-circuit evaluation
It's not flexible and it doesn't provide the tools to create powerful libraries
If now it's one of the most used languages is just because people that chose it were wrong
The above are facts and what I say is absolute truth

If you want more info on this talk to my friends xoreaxeax and xorebxebx

:-)

It's quite humorous how you try to attack C++ which has a complete different purpose than Scala. We are not denying the good points of Scala. Neither do we deny those of C++. Nevertheless,
Nobody cares about performance and all other languages have better performances than C++
that is provably wrong. I call Visual Basic, I call Python, I call ActionScript, I call Logo, I call Game Maker Language.
C++ overloaded operators don't provide shot-circuit evaluation
If you return a value after evaluation of the first operand to that operator, the function stops execution, aka, short-circuit evaluation. It's possible, very easy, actually.
It's not flexible and it doesn't provide the tools to create powerful libraries
It's the most widely used language for Game Development and OOP-related programming. It has a wide community behind it that generates great libraries like SFML every day. Give us a reason to use Scala. .. You don't have one? Get the fuck off, and take your second accounts with you. They are not your friends, you have none.
I'm not xorebxebx or xoreaxeax and the emoticon means something http://en.wikipedia.org/wiki/Emoticon#Creation_of_:-.29_and_:-.28
It's quite humorous
exactly
It's just that I'm quite sick of the Scala bullshit on a C++ forum.
closed account (EzwRko23)
This post was not from me. xorecxecx is not my friend. ;D

Anyway:

It's quite humorous how you try to attack C++ which has a complete different purpose than Scala


Huh? So you claim C++ is **not** a general purpose language? Scala and Java are.


It's the most widely used language for Game Development and OOP-related programming


Partially correct. For game development yes, if you exclude mobile and web gaming market; for OOP definitely no. Java + C# + PHP + Python have 3-5 times as much popularity as C++.
Last edited on
There are however, lower level reasons why one would prefer to choose for one of those. Many people on this forum took the route to C++, hence why this is a C++ forum. I therefor kind of question the fact of discussing this here.
This post was not from me. xorecxecx is not my friend. ;D
Really? Really?

If the problems with C++ that you state were significant enough to create difficulties programming, then we would've caught on by now and pushed C++ to the back of our minds as nothing more than a learning experience. I've tried Java. The lack of overloaded operators and templates proved nothing short of annoying.

For me, game programming is all I need it for and it works great. Even when I try to branch out and create other applications, the implementation is hardly difficult to create. Lazy evaluation seem utterly useless (from my understanding of it)

Short-circuit evaluation seems nothing more than a minor optimization for most applications.

Define "powerful", because obviously your definition and our definition are entirely different.
Last edited on
That's it, some one ban this trolling ass-clown. He's obviously retarded and a complete detriment to this on-line society.
My post was a joke :-(
I think you made your name too subtle. Well done.
closed account (EzwRko23)

If the problems with C++ that you state were significant enough to create difficulties programming, then we would've caught on by now and pushed C++ to the back of our minds as nothing more than a learning experience. For me, game programming is all I need it for and it works great.


This is called a BLUB syndrome.
http://www.paulgraham.com/avg.html
You don't notice, because you live in a BLUB. Learn a new language fairly well (not just by trying to do a hello-world and skimming through the book) and then talk about power of languages, ok?
I have programmed in C++ and Java for about 5 years each so I can do comparisons.


I've tried Java. The lack of overloaded operators and templates proved nothing short of annoying.


I just could say for very similar reasons Scala beats C++: lack of ability to create new operators and lack of generics in C++. But this would be a dumb argument.


Last edited on
For the sake of readability, thank god C++ doesn't allow the ability to create new operators. You have plenty of overloadable operators to begin with, I can't see myself using up even all of those. The only operator I could see my self adding is ^, just for exponents obviously, but that's pretty much it.

This is called a BLUB syndrome.
http://www.paulgraham.com/avg.html
You don't notice, because you live in a BLUB. Learn a new language fairly well (not just by trying to do a hello-world and skimming through the book) and then talk about power of languages, ok?
Good arguments considering the only languages I know are C++, XHTML, CSS, JavaScript, and PHP. Should probably expand my tastes.

Write down a list of why Scala is "more powerful" than C++. This way we can see your full argument all at once rather than getting bits an pieces over time, as has been done recently.
The only operator I could see my self adding is ^, just for exponents obviously, but that's pretty much it.


^ already is an operator and can be legally overloaded.

Although it has a different meaning and overloading it to make exponents would be a bad idea IMO. =P
I'd love to be able to add operators. I'd add a ** operator like Python's for exponents, I'd make |(x)| = abs(x), I'd add alot of operators.
And for my next trick I'm going to simulate operator creation in C++ through meta-programming.
Yeah, you could do that, but you couldn't do this:
1
2
3
4
5
6
7
template <typename T>
T operator**(T base, T power)
{
        /* ... */
}
/* ... */
printf("2^{2} = %d\n", 2 ** 2 == 4);
I didnt think so, try it.

EDIT: sorry misread it.
Last edited on
The other problem with ^ for exponentiation is that it has the wrong precedence.

Separate from that, operators don't add functionality to a language; they exist merely for notational convenience.
It is easier to read "a + b" than "add( a, b )" simply because we are so used to seeing the former.
^ already is an operator and can be legally overloaded.
SHENANIGANS.
I swear to God I'm going to pistol whip the next person that says Shenanigans
Pages: 12