案例敏感的原因? [英] Why Case Sensitive?

查看:104
本文介绍了案例敏感的原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么C区分大小写?


我知道现在改变它有点晚了但是似乎有更多的优势

更多的优势在源代码中忽略字母案例。


在现实生活中这样的情况会很荒谬(例如,写下我名字的16种方式)和在某些情况下,可怕。


是否要避免不必考虑新的标识符?你怎么用

区分通过手机读取一些代码的情况

例子?


Bart

Why is C case sensitive?

I know it''s a bit late to change it now but there would seem to be far
more advantages in ignoring letter case in source code.

In real life such a situation would be ridiculous (eg. the 16 ways of
writing my name) and, in some cases, frightening.

Is it to avoid having to think up new identifiers? And how would you
distinguish case when reading out bits of code over the phone for
example?

Bart

推荐答案

2007年7月19日星期四下午3:19,Bart< bc@freeuk.com写了

条消息< 11 ********************** @ m37g2000prh.googlegroups .com>:
On Thursday 19 Jul 2007 3:19 pm, Bart <bc@freeuk.comwrote in
message <11**********************@m37g2000prh.googlegroups .com>:

为什么是否区分大小写?


我知道现在改变它有点晚了但似乎有点b $ b忽略字母案例的优势更多在源代码中。


在现实生活中,这样的情况会很荒谬(例如16种方式写我的名字),在某些情况下,可怕的。


是否要避免不必考虑新的标识符?当你通过手机读出一些代码时,你会如何区分案例


Why is C case sensitive?

I know it''s a bit late to change it now but there would seem to be
far more advantages in ignoring letter case in source code.

In real life such a situation would be ridiculous (eg. the 16 ways
of writing my name) and, in some cases, frightening.

Is it to avoid having to think up new identifiers? And how would
you distinguish case when reading out bits of code over the phone
for example?



C是区分大小写的,因为计算系统自然是敏感的b / b
。需要额外的努力才能*不区分大小写。输入

键盘之类的设备需要区分案例,

输出设备,文本实用程序,排版系统等。


现实世界是区分大小写的,计算机也是如此。

C is case sensitive because computing systems are naturally case
sensitive. It takes extra effort to *not* be case sensitive. Input
devices like keyboards need to distinguish between cases, as do
output devices, text utilities, typesetting systems etc.

Real world is case sensitive and so are computers.


Bart写道:
Bart wrote:

为什么是C区分大小写?
Why is C case sensitive?



由于没有充分的理由让它不区分大小写,因此

灵敏度是免费的,并且区分大小写允许一些

有用的约定,例如UPPERCASE宏,并且在类型和对象之间有一个方便的

区别。

Because there''s no good reason to make it case-insensitive, case
sensitivity comes for free, and case sensitivity allows some
useful conventions such as UPPERCASE macros and having a convenient
distinction between Types and objects.


以及如何例如,当您通过电话读出一些代码

时,您会区分大小写吗?
And how would you distinguish case when reading out bits of code
over the phone for example?



无论什么工作。让真实的人在手机的另一端有一个好处就是你可以在重要的情况下整理一个协议。 (我会给你发电子邮件来源是一个

这样的。)


我不知道你,但我发了INT当我认为它可能很重要时,我会用不同的方式




-

Kris带英文口音 DOLL-inn


Hewlett-Packard Limited注册号:

注册办事处:Cain Road,Bracknell,Berks RG12 1HN 690597 England




" Bart" < bc@freeuk.com写信息

新闻:11 ********************** @ m37g2000prh.googlegr psps.com。 ..

"Bart" <bc@freeuk.comwrote in message
news:11**********************@m37g2000prh.googlegr oups.com...

为什么C区分大小写?


我知道现在改变它有点晚了但是那里在源代码中忽略字母的情况似乎更有优势。


在现实生活中这样的情况会很荒谬(例如16种方式)

写我的名字),在某些情况下,令人恐惧。


是否要避免不必考虑新的标识符?你怎么用

区分通过手机读取一些代码的情况

例子?
Why is C case sensitive?

I know it''s a bit late to change it now but there would seem to be far
more advantages in ignoring letter case in source code.

In real life such a situation would be ridiculous (eg. the 16 ways of
writing my name) and, in some cases, frightening.

Is it to avoid having to think up new identifiers? And how would you
distinguish case when reading out bits of code over the phone for
example?



这可能是一个问题,因为人类会记住单词,而不是标点符号。


我使用的惯例是,如果某个函数依赖于标准库而且

没有别的然后它全部是小写的,而如果它调用特定于平台的

函数则以大写字母开头。


Fortran 77不区分大小写,这有助于到Fortran 77代码

很难阅读。

It can be a problem, because humans remember words, not punctuation.

I use the convention that if a function depends on the standard library and
nothing else then it is all lowercase, whilst if it calls platform-specific
functions it starts with an uppercase letter.

Fortran 77 is case insensitive, and this contributes to Fortran 77 code
being quite hard to read.


这篇关于案例敏感的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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