Reducing Template Compile Times

Templates have been enormously profitable for the D programming language. They allow the programmer to generate efficient and correct code at compile time. Long gone are the days of preprocessor macros or handwritten, per-type data structures. D templates, though designed in the shadow of C++ templates, were not made in their image. D makes templates cleaner and more expressive, and also enables patterns like “ Design by Introspection ”. Here is a simple example of a template that would require the use of p

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论