Perl操作符是“被发现的”而不是设计的?

前端之家收集整理的这篇文章主要介绍了Perl操作符是“被发现的”而不是设计的?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
只是看这个页面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.

等等…

以上操作符是DISCOVERED,所以它们不是perl设计的故意的?

这个意思比这里的可能性比perl基础有一些随机的字符序列什么在正确的顺序做一些有用的像()x! “经营者”?

这里有什么其他的语言发现了什么操作?

解决方法

从您链接页面

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)将对象左侧或右侧编号.这就是以任何形式添加零,“秘密”运算符.

原文链接:https://www.f2er.com/Perl/172335.html

猜你在找的Perl相关文章