...
首页> 外文期刊>C - C++ Users Journal >Syntactic Aspartame: Recreational Operator Overloading
【24h】

Syntactic Aspartame: Recreational Operator Overloading

机译:语法阿斯巴甜:娱乐性操作符重载

获取原文
获取原文并翻译 | 示例

摘要

Operator overloading is a controversial subject. There are programmers who feel it is merely syntactic sugar with a potential for abuse, and should never have made it into the language. However, you could object that p0bject- > Foo(x) is merely syntactic sugar for Foo(p0bject, x). And while many people would agree that event += observer is less clear than event. Register(observer), many others (especially programmers dealing with scientific applications) would certainly not like to go back to a = add(mul(p, q), r).
机译:操作员重载是一个有争议的主题。有些程序员认为它只是语法糖,可能会被滥用,因此永远不要将其纳入语言。但是,您可能会反对p0bject-> Foo(x)仅仅是Foo(p0bject,x)的语法糖。而且尽管许多人都同意事件+ =观察者不如事件清晰。注册(观察者),许多其他人(尤其是处理科学应用程序的程序员)当然不希望返回a = add(mul(p,q),r)。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号