是否有一种编程语言使用(非扩展)ascii 表中的字符以外的字符?

发布于 2024-10-01 01:19:46 字数 407 浏览 4 评论 0 原文

我不知道谁会做出这样的决定,但是有这样的语言吗?

我问这个问题(或者一些琐事,如果你愿意的话)的原因是我刚刚完成了我的“开发者”版本的 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

匿名。 2024-10-08 01:19:46

是的,有(至少一个): 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:

东京女 2024-10-08 01:19:46

事实上的标准 Haskell 实现,GHC,

{-# LANGUAGE UnicodeSyntax #-}

>如果在文件顶部指定, 。这使您可以将 用于函数类型和 lambda, 用于类型类, 用于列表推导式等。

更准确地说,支持的语法是:

 ASCII   Unicode alternative
 ::      ∷ U+2237 PROPORTION
 =>      ⇒ U+21D2 RIGHTWARDS DOUBLE ARROW
 forall  ∀ U+2200 FOR ALL
 ->      → U+2192 RIGHTWARDS ARROW
 <-      ← U+2190 LEFTWARDS ARROW
 -<      ↢ U+2919 LEFTWARDS ARROW-TAIL
 >-      ↣ U+291A RIGHTWARDS ARROW-TAIL
 -<<       U+291B LEFTWARDS DOUBLE ARROW-TAIL
 >>-       U+291C RIGHTWARDS DOUBLE ARROW-TAIL
 *       ★ U+2605 BLACK STAR

此外,各种库提供 Unicode 运算符(使用 Haskell 对运算符名称中的 Unicode 字符的支持): http ://www.haskell.org/haskellwiki/Unicode-symbols

The de-facto standard Haskell implementation, GHC, supports Unicode syntax if

{-# LANGUAGE UnicodeSyntax #-}

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:

 ASCII   Unicode alternative
 ::      ∷ U+2237 PROPORTION
 =>      ⇒ U+21D2 RIGHTWARDS DOUBLE ARROW
 forall  ∀ U+2200 FOR ALL
 ->      → U+2192 RIGHTWARDS ARROW
 <-      ← U+2190 LEFTWARDS ARROW
 -<      ↢ U+2919 LEFTWARDS ARROW-TAIL
 >-      ↣ U+291A RIGHTWARDS ARROW-TAIL
 -<<       U+291B LEFTWARDS DOUBLE ARROW-TAIL
 >>-       U+291C RIGHTWARDS DOUBLE ARROW-TAIL
 *       ★ U+2605 BLACK STAR

Further, various libraries provide Unicode operators (using Haskell's support for Unicode characters in operator names): http://www.haskell.org/haskellwiki/Unicode-symbols

野味少女 2024-10-08 01:19:46

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.

淡水深流 2024-10-08 01:19:46

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.

绝不放开 2024-10-08 01:19:46

旧的 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.

人生戏 2024-10-08 01:19:46

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.

染柒℉ 2024-10-08 01:19:46

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 "^").

简单爱 2024-10-08 01:19:46

这算不算?

Python中文版
http://www.chinesepython.org/doc/tut/tut/node3.html

中文:

>>> 甲 = 12
>>> 乙 = 3
>>> 甲 + 乙
15
>>> 甲 + 乙**乙
39
>>> 甲 = 0 #(可以重新指定值)
>>> 乙 = 甲 + 1
>>> 寫 乙
1

英文:

>>> j = 12
>>> y = 3
>>> j + y
15
>>> j + y**y
39
>>> j = 0
>>> y = j + 1
>>> print y
1

Would this count?

Chinese version of Python
http://www.chinesepython.org/doc/tut/tut/node3.html

Chinese:

>>> 甲 = 12
>>> 乙 = 3
>>> 甲 + 乙
15
>>> 甲 + 乙**乙
39
>>> 甲 = 0 #(可以重新指定值)
>>> 乙 = 甲 + 1
>>> 寫 乙
1

English:

>>> j = 12
>>> y = 3
>>> j + y
15
>>> j + y**y
39
>>> j = 0
>>> y = j + 1
>>> print y
1
飘落散花 2024-10-08 01:19:46

我的 F# 分支: https://github.com/Heather/fsharp

let ° msg = System.Console.WriteLine( msg.ToString() )

let ◄ = 5
let ★ x = x + ◄
let (-★-) x y = x + y

let © = "© 2013"

let ► =
    fun x -> 2 + x

sprintf  "Heather %s" project version © |> °
► ◄ |> fun ▼ ->
    ★ <| (▼ -★- ▼) |> °

My fork of F# : https://github.com/Heather/fsharp

let ° msg = System.Console.WriteLine( msg.ToString() )

let ◄ = 5
let ★ x = x + ◄
let (-★-) x y = x + y

let © = "© 2013"

let ► =
    fun x -> 2 + x

sprintf  "Heather %s" project version © |> °
► ◄ |> fun ▼ ->
    ★ <| (▼ -★- ▼) |> °
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文