使用非ascii符号 [英] Using non-ascii symbols

查看:73
本文介绍了使用非ascii符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在页面上 http://wiki.python.org/moin/ Python3%2e0建议

我注意到一个有趣的建议:


这些运营商应该添加一个?a?¥a?*具有

以下含义的语言:


< => =!=


这应该改善可读性(并使语言更容易进入

初学者)。


这应该是类似于digraphe和trigraph的演变

来自C和C ++语言的(digramme et trigramme)。


这个群体中的人如何看待这个建议?


符号以上甚至不是latin-1,你需要utf-8。


(latin-1中有很多有用的符号。也许可以使用?
$ b笛卡儿产品$ b ...)

虽然它们的可读性更好,但它们并不是更好的类型(

至少与大多数现在的编辑一样)。


这个想法是荒谬的还是有一天我们的孩子会认为限制

到7位ascii是荒谬的?


其他语言是否有类似的尝试?我只能想到APL,

但是很久以前。


一旦你打开了使用非ascii符号的想法,我就会'我确定可以找到一堆有用的应用程序。变量名可以允许

为非ascii,如XML。想想阿拉伯语中的班级名称......或者你可以使用希腊字母,如果你用完一个字母的变量名,就像

数学家那样。这是可取的还是恐怖的场景?

意见?


- Christoph

On the page http://wiki.python.org/moin/Python3%2e0Suggestions
I noticed an interesting suggestion:

"These operators a?¤ a?¥ a?* should be added to the language having the
following meaning:

<= >= !=

this should improve readibility (and make language more accessible to
beginners).

This should be an evolution similar to the digraphe and trigraph
(digramme et trigramme) from C and C++ languages."

How do people on this group feel about this suggestion?

The symbols above are not even latin-1, you need utf-8.

(There are not many usefuls symbols in latin-1. Maybe one could use ??
for cartesian products...)

And while they are better readable, they are not better typable (at
least with most current editors).

Is this idea absurd or will one day our children think that restricting
to 7-bit ascii was absurd?

Are there similar attempts in other languages? I can only think of APL,
but that was a long time ago.

Once you open your mind for using non-ascii symbols, I''m sure one can
find a bunch of useful applications. Variable names could be allowed to
be non-ascii, as in XML. Think class names in Arabian... Or you could
use Greek letters if you run out of one-letter variable names, just as
Mathematicians do. Would this be desirable or rather a horror scenario?
Opinions?

-- Christoph

推荐答案

Christoph Zwerschke写道:
Christoph Zwerschke wrote:
在页面上 http://wiki.python.org/moin/Python3%2e0Suggestions
我注意到一个有趣的建议:

这些运算符a?a?¥ a?*应添加到具有以下含义的语言中:

< => =!=

这应该提高可读性(并使语言成为可能)
初学者更容易理解。

这应该是类似于C和C ++语言的digraphe和trigraph(digramme et trigramme)的演变。

这个群体的人怎么会对这个建议感到满意?

上面的符号甚至不是latin-1,你需要utf-8。

(有l中没有多少有用的符号atin-1。也许有人可以使用??
笛卡尔产品......)

虽然它们的可读性更好,但它们并不是更好的类型(至少在大多数情况下)当前的编辑)。

这个想法是荒谬的还是有一天我们的孩子会认为限制7位ascii是荒谬的?

是否有类似的尝试其他语言?我只能想到APL,
但是很久以前。

一旦你打开心思使用非ascii符号,我肯定可以
找到一堆有用的应用程序。可以允许变量名称为非ascii,如XML中所示。想想阿拉伯语中的类名......或者你可以使用希腊字母,如果你用完一个字母的变量名,就像数学家那样。这是可取的还是恐怖的场景?
意见?

- Christoph
On the page http://wiki.python.org/moin/Python3%2e0Suggestions
I noticed an interesting suggestion:

"These operators a?¤ a?¥ a?* should be added to the language having the
following meaning:

<= >= !=

this should improve readibility (and make language more accessible to
beginners).

This should be an evolution similar to the digraphe and trigraph
(digramme et trigramme) from C and C++ languages."

How do people on this group feel about this suggestion?

The symbols above are not even latin-1, you need utf-8.

(There are not many usefuls symbols in latin-1. Maybe one could use ??
for cartesian products...)

And while they are better readable, they are not better typable (at
least with most current editors).

Is this idea absurd or will one day our children think that restricting
to 7-bit ascii was absurd?

Are there similar attempts in other languages? I can only think of APL,
but that was a long time ago.

Once you open your mind for using non-ascii symbols, I''m sure one can
find a bunch of useful applications. Variable names could be allowed to
be non-ascii, as in XML. Think class names in Arabian... Or you could
use Greek letters if you run out of one-letter variable names, just as
Mathematicians do. Would this be desirable or rather a horror scenario?
Opinions?

-- Christoph




我找不到 ; a?¤,a?¥或?*"在我的键盘上。


James



I can''t find "a?¤, a?¥, or a?*" on my keyboard.

James


James Stroud写道:
James Stroud wrote:
我可以找不到a?,?或?*?在我的键盘上。
I can''t find "a?¤, a?¥, or a?*" on my keyboard.




获得更好的键盘?或OS?


在OS X上,


a?¤是Alt-,

a?¥是Alt- 。

a?*是Alt- =


击键次数少于< =或> =或!=。


-

Robert Kern
ro ******* **@gmail.com


在草地长得很高的地狱里

梦想的坟墓是否能够死去。

- Richard Harter



Get a better keyboard? or OS?

On OS X,

a?¤ is Alt-,
a?¥ is Alt-.
a?* is Alt-=

Fewer keystrokes than <= or >= or !=.

--
Robert Kern
ro*********@gmail.com

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter


Robert Kern写道:
Robert Kern wrote:
我找不到?,?或?在我的键盘上。
I can''t find "?, ?, or ?" on my keyboard.



获得更好的键盘?还是操作系统?

在OS X上,

?是Alt-,
?是Alt-。
?是Alt- =

击键次数少于< =或> =或!=。



Get a better keyboard? or OS?

On OS X,

? is Alt-,
? is Alt-.
? is Alt-=

Fewer keystrokes than <= or >= or !=.




当然可以,但我不能查找OS X作为使用Python的先决条件。所以,如果这些符号将被Python支持,我就不会给你一个该死的,

我不认为普通的ASCII版应该是弃用。有太多

的情况,它仍然有用(编码旧的终端等等)。

-

Giovanni Bajo



Sure, but I can''t find OS X listed as a prerequisite for using Python. So,
while I don''t give a damn if those symbols are going to be supported by Python,
I don''t think the plain ASCII version should be deprecated. There are too many
situations where it''s still useful (coding across old terminals and whatnot).
--
Giovanni Bajo


这篇关于使用非ascii符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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