Why are many languages case sensitive?

后端 未结 30 2035
执念已碎
执念已碎 2020-11-29 04:35

Why are many languages case sensitive?

Is it simply a matter of inheritance? C++ is case-sensitive because C is, Java is case-sensitive because C++ is, etc.? Or is t

30条回答
  •  孤独总比滥情好
    2020-11-29 05:03

    Back when parsing and compiling was real expensive and would take all night it was advantageous to the compiler if it didn't have to worry about case.

    Once identifiers came in to existence that were only unique via their case it became very difficult to go back. Many developers liked it and there doesn't seem to be a big desire to undo it.

提交回复
热议问题