but i didn't realize how good. Am i really that good?
But making the programmer do the case sensitivity is exactly the wrong implementation of this rational.
Problem with case sensitivity is that you can use the exact same word for different concepts. For example:MyCar myCar, Mycar, mycar; is valid c++ code. You have declared 3 different variables as class MyCar. As code gets larger and more people work on it, similar variable names like that will crop up. When you read over the code, it gets difficult to figure out which "my car" you are looking at.
on the contrary, as long as the language is case insensitive, it doesn't matter what you do with caps in your words. But if your language is case sensitive, and u are using myCar, Mycar, MyCar, MYCAR, mycar - Then u need to see a doctor.
#include <iostream>using namespace std;int Wheel = 10;class MyCar{ public: int wheel; MyCar() { Wheel = 5; }};int main(){ MyCar myCar; cout << "Wheel = " << Wheel << ", myCar.wheel = " << myCar.wheel << endl; return 0;}