执行任何编程语言支持≥字符,unicode u+ 2265,是指大于或等于?
在编程中,使用> =
作为比较操作员的含义“大于或等于”。 Unicode至少包含一个代表此概念的特定字符:≥(U+2265)。是否有任何可以接受此字符作为比较操作员的编程语言?
注意:可能存在编程语言,其中用户可以将≥
定义为比较操作员。这当然很有趣,但是我正在询问基本语言,某些标准分布或一些广泛使用的软件包或库的情况。
It is common in programming to use something like >=
as the comparison operator meaning "is greater than or equal to". Unicode includes at least one specific character that represents this concept: ≥ (U+2265). Are there any programming languages that accept this character for use as a comparison operator?
Note: There probably exist programming languages in which a user can define ≥
as a comparison operator. That's certainly interesting, but I am asking about cases where the base language, some standard distribution of it, or some widely used package or library already has it so defined.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道您在哪里可以找到支持Unicode运营商的语言的全面列表。最著名的之一是 julia ,通常使用用于计算分析。
还有其他一些,例如perl 6(现在称为 raku < /a>)与Scala一起提供一些支持。
许多现代语言都支持标识符中的Unicode,但并非本地实施Unicode操作员。这在很大程度上是不必要的,因为大多数IDE还支持字体 - 文穿:
&gt; =
等运算符的功能为≥
。I don't know where you would find a comprehensive list of languages that support Unicode operators. One of the most well known is Julia, which is typically used for computational analysis.
There are a few others, like Perl 6 (now known as Raku) which has some support for it, along with Scala.
Many modern languages support Unicode in identifiers but do not natively implement Unicode operators. It's largely unnecessary since most IDEs also support font-ligatures: a feature that renders operators like
>=
as≥
.