我不知道谁会做出这样的决定,但是有这样的语言吗?
我问这个问题(或者一些琐事,如果你愿意的话)的原因是我刚刚完成了我的“开发者”版本的 dvorak 的第八次迭代(重点强调特殊字符)。而且四个键目前还没有使用!
因为我不想偶然发现一种新语言来尝试,却发现我的布局缺少一个关键的特殊字符,所以我决定询问社区。
如果除了基本字符之外不需要任何其他字符,那么未使用的键的最佳用途是什么(当然对于程序员来说就是这样)? 扩展 ascii 表中的内容?或者故意不使用它们并使用 AutoHotKey 做一些很酷的事情?
I cant see who would make such a decision but is there any such language?
The reason I ask this (or some trivia, if you like) is that I just finished making the eighth iteration of my "developer" version of dvorak (big emphasis on special characters). And four keys are currently not used!
Since I dont ever want to stumble upon a new language to try, only to find out that my layout lacks a crucial special character I decided to ask the community.
If there never is a need for any other characters besides the basic ones, what would be the best use (for a programmer of course, this is SO) of unused keys? Something from the extended ascii table? Or purposefully leave them unused and do something cool with with AutoHotKey?
发布评论
评论(9)
是的,有(至少一个): APL
这是康威的生命游戏用 APL 编写:
(来源:wikimedia.org)
它使用以下键盘映射:
Yes, there is (at least one): APL
Here is Conway's Game of Life written in APL:
(source: wikimedia.org)
It uses this keyboard mapping:
事实上的标准 Haskell 实现,GHC,
>如果在文件顶部指定, 。这使您可以将
→
用于函数类型和 lambda,⇒
用于类型类,←
用于列表推导式等。更准确地说,支持的语法是:
此外,各种库提供 Unicode 运算符(使用 Haskell 对运算符名称中的 Unicode 字符的支持): http ://www.haskell.org/haskellwiki/Unicode-symbols
The de-facto standard Haskell implementation, GHC, supports Unicode syntax if
is specified at the top of a file. This lets you use
→
for function types and lambdas,⇒
for type classes,←
for list comprehensions, etc..More precisely, the supported syntax is:
Further, various libraries provide Unicode operators (using Haskell's support for Unicode characters in operator names): http://www.haskell.org/haskellwiki/Unicode-symbols
Fortress,一种数学/科学编程语言,由 Java 的 Guy L Steele(以及其他人)在 Sun 工作时开发,广泛使用 Unicode 数学运算符等。
不仅有该语言的定义的 ASCII 表示形式,还有使用 TeX 将 ASCII 转换为“渲染”版本的定义方法。您还可以(据我所知)直接在源代码中使用 Unicode 运算符 - 对于难以键入的内容只有一个 ASCII“快捷方式”(据我所知 - 我承认我在这一点上不确定)。
该网站有源代码及其呈现方式的示例。
Fortress, a mathematical/scientific programming language developed by (among others) Java's Guy L Steele when he was still at Sun, extensively uses Unicode mathematical operators etc.
Not only is there a defined ASCII representation of the language, there's also a defined way of converting the ASCII into a 'rendered' version using TeX. You can also (as I understand i) use Unicode operators directly in your source -- there's just an ASCII 'shortcut' for stuff that's hard to type (as I understand it -- I'l admit I'm not sure on this point).
The site has an example of the source and how it's rendered.
C# 允许变量包含 Unicode 字符。例如,字符 ɢ(拉丁小写字母 G,U+0262)在 C# 变量中是完全有效的字符。
C# allows variables to contain Unicode characters. For example, the character ɢ (Latin Small Capital G, U+0262) is a perfectly valid character in a C# variable.
旧的 Macintosh 程序员工作室 (MPW) 的脚本语言使用大量非 ASCII 字符来实现基本上是 Unix shell 的一个版本。事实上,一些 文档仍然可用。例如,它使用 Σ 进行重定向。
The scripting language for the old Macintosh Programmer's Workshop (MPW) used lots of non-ASCII characters to implement what was basically a version of the Unix shell. In fact, some of the documentation is still available. It used ∑ for redirection, for example.
Perl 6 具有可选的 Unicode 运算符,以及添加用户定义的功能运营商。
您可能不应该等待它才重新映射您的密钥。我不知道 Rakudo 是否可以使用 Unicode 运算符。
Perl 6 has optional Unicode operators, as well as the ability to add user-defined operators.
You probably shouldn't wait for it before remapping your keys. I don't know if Rakudo can work with Unicode operators yet.
PL/I 使用倒置的 L 字符作为“非”运算符;我曾经使用过的 VM360 使用“^”作为 ASCII 等效项(我不认为 EBCDIC 有“^”)。
PL/I uses an upside-down-L character for the "not" operator; the VM360 I used once upon a time used "^" as the ASCII equivalent (I don't think EBCDIC had "^").
这算不算?
Python中文版
http://www.chinesepython.org/doc/tut/tut/node3.html
中文:
英文:
Would this count?
Chinese version of Python
http://www.chinesepython.org/doc/tut/tut/node3.html
Chinese:
English:
我的 F# 分支: https://github.com/Heather/fsharp
My fork of F# : https://github.com/Heather/fsharp