Why are many languages case sensitive?

后端 未结 30 2043
执念已碎
执念已碎 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 04:48

    I think having a case-sensitive language ENCOURAGES people to write poor code.

    Const SHOESIZE = 9
    
    Class ShoeSize
    
    ShoeSize.shoesize = SHOESIZE
    
    call shoeSize(ShoeSize);
    
    function shoeSize(SHOEsize)
    {
       int ShoeSIZE = 10
       return ShoeSize
    }
    

    Duh. You couldn't think of a better variable name than "ShoeSize" for the different purposes? There is a billion different words you could use, but you choose to just keep using ShoeSize instead?

提交回复
热议问题