首页> 外文会议>Ivannikov Ispras Open Conference >Constexpr: A Great Good but Wrong Idea
【24h】

Constexpr: A Great Good but Wrong Idea

机译:Constexpr:一个很好的好理念

获取原文
获取外文期刊封面目录资料

摘要

The introduction of the "constexpr" feature in the C++11 standard has raised a great interest in the compile-time function execution in the programming languages communities. In this paper, we evaluate this feature and argue that while the compile-time evaluations are valuable optimization methods, its explicit support on the level of a programming language is a wrong decision. We show that compile-time evaluations must be enforced by the compiler automatically and transparently to the developer. Finally, we propose a programming language design principle stating that positive optimization "hints" must not be a part of programming language.
机译:C ++ 11标准中的“Constexpr”功能的引入对编程语言社区中的编译时函数执行提出了极大的兴趣。在本文中,我们评估了此功能,并争辩说,虽然编译时间评估是有价值的优化方法,但其对编程语言级别的显式支持是错误的决定。我们表明编译时评估必须由编译器自动和透明地向开发人员执行。最后,我们提出了一种编程语言设计原则,说明积极优化“提示”不得成为编程语言的一部分。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号