为什么很多语言区分大小写? [英] Why are many languages case sensitive?

查看:125
本文介绍了为什么很多语言区分大小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么很多语言区分大小写?

Why are many languages case sensitive?

这只是一个继承的问题吗? C ++是区分大小写的,因为C是Java,因为C ++是区分大小写的?还是有更务实的理由?

Is it simply a matter of inheritance? C++ is case-sensitive because C is, Java is case-sensitive because C++ is, etc.? Or is there a more pragmatic reason behind it?

推荐答案

Unix。

Unix是区分大小写的,开发用于Unix的许多编程语言区分大小写。

Unix was case sensitive, and so many programming languages developed for use on Unix were case sensitive.

计算机不是宽恕 - 大写字符不一样一个小写字符,它们完全不同。而在处理周期时,RAM等等都是昂贵的,所以不要强调编译器和计算机是宽恕的,所以人们只是试图让事情发挥作用。

Computers are not forgiving - an uppercase character is not the same thing as a lowercase character, they're entirely different. And back when processing cycles, RAM and so forth were expensive it wasn't seen as worth the effort to force compilers and computers to be "forgiving", people were just trying to get the things to work.

请注意,如果 Visual Basic 发生了一旦公司开始投资于让群众进行计划的概念对于他们的底线来说是一件好事(即如果Windows上有更多的程序,微软会赚更多的钱)语言开始是更友善和更宽容。

Notice how case insensitivity didn't really become something useful until things like Visual Basic came along - once companies started to get invested in the concept that getting the masses to program was a good thing for their bottom line (i.e., Microsoft makes more money if there's more programs on Windows) did the languages start to be friendlier and more forgiving.

这篇关于为什么很多语言区分大小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆