为什么人们喜欢区分大小写? [英] Why do people like case sensitivity?

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

问题描述

只是想知道人们为什么喜欢编程语言区分大小写?我并不想启动一个火焰战争只是好奇,多数民众赞成。

个人而言,我从来没有真正喜欢它,因为我觉得我的工作效率下降当过我已经试过有区分大小写的语言,心灵你我慢慢升温/习惯了,现在我使用C#和F#很多更然后,我习惯了。

Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all.
Personally I have never really liked it because I find my productivity goes down when ever I have tried a language that has case sensitivity, mind you I am slowly warming up/getting used to it now that I'm using C# and F# alot more then I used to.

那么,为什么你喜欢它吗?

So why do you like it?

干杯

推荐答案

一致性。代码更难以阅读,如果富,富,富和富被认为是相同的。

Consistency. Code is more difficult to read if "foo", "Foo", "fOO", and "fOo" are considered to be identical.

有些人会写一切全部大写,让一切的可读性。

SOME PEOPLE WOULD WRITE EVERYTHING IN ALL CAPS, MAKING EVERYTHING LESS READABLE.

区分大小写可以很容易地使用不同的方式同名,根据市值约定,如

Case sensitivity makes it easy to use the "same name" in different ways, according to a capitalization convention, e.g.,

Foo foo = ...  // "Foo" is a type, "foo" is a variable with that type

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

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