07-18-2013, 09:21 AM
(07-17-2013, 08:59 PM)mad1231999 Wrote:(07-17-2013, 10:27 AM)Thor23 Wrote: Why do I get the feeling that we're having two different conversations? I realize that from a practical perspective, it's better to use specific languages for specific tasks, and that some languages are faster than others - but that's not what I'm talking about. I'm talking about the syntax that's written to do those tasks, the thought that constructs used throughout the different languages are analogous.
So that, from a functionality standpoint,
for(int a=0; a < 10; a++){cout << a << endl;}
is operationally equivalent to
for a in range(10): print a
so there's really no difference between them except for the way they're written.
Yes there is. C++ is compiled, Python is interpreted.
*facepalm* I.. I feel like I need to be speaking very slowly in order for you to get the point I'm trying to make. Better yet, I'll make an analogy: You need to get to the airport, and have two vehicles in the driveway that you can take to get there. One of them is a truck, the other an electric car. Both vehicles run on different forms of energy, have different features, and look different - but both are completely capable of getting you to the airport. So which one you choose to take makes no difference, as the end result is the same: you arrive at the airport.