gpt4 book ai didi

Perl 运算符是 "discovered"并且不是设计的?

转载 作者:行者123 更新时间:2023-12-04 01:51:47 25 4
gpt4 key购买 nike

刚刚阅读此页:https://github.com/book/perlsecret/blob/master/lib/perlsecret.pod ,并且对以下陈述感到非常惊讶:

Discovered by Philippe Bruhat, 2012.
Discovered by Abigail, 2010. (Alternate nickname: "grappling hook")
Discovered by Rafaël Garcia-Suarez, 2009.
Discovered by Philippe Bruhat, 2007.

等等...

以上运营商为 已发现 ,所以他们不是 perl-design 故意的?

这意味着比这里有可能 perl sill 有一些随机字符序列,以正确的顺序做一些有用的事情,比如 ()x!! “运算符(operator)”?

这里有没有其他语言发现了operatos?

最佳答案

从您链接的页面:

They are like operators in the sense that these Perl programmers see them often enough to recognize them without thinking about their smaller parts, and eventually add them to their toolbox. And they are like secrets in the sense that they have to be discovered by their future user (or be transmitted by a fellow programmer), because they are not explicitly documented.



也就是说,它们并不是真正的自己的运营商,而是由较小的运营商组成,它们组合起来做某事。

例如,“venus”运算符( 0++0 )对其左侧或右侧的对象进行数字化。这就是以任何形式添加零的作用,“ secret ”运算符与否。

关于Perl 运算符是 "discovered"并且不是设计的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17559648/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com