Three articles on D
Paul Backus
snarwin at gmail.com
Sun Jun 7 23:34:56 UTC 2020
On Sunday, 7 June 2020 at 22:42:34 UTC, data pulverizer wrote:
> 2. Template basics decomposition and value types: Once you've
> written your first basic template in D, at some point soon
> afterwards you start struggling for how to decompose template
> types and articulate the template pattern you want in order to
> facilitate template auto-inference by the compiler. That's what
> this article helps with:
> https://github.com/dataPulverizer/DTemplatesDecompositionAndValueTypes/blob/master/README.md
The examples here seem a bit contrived and unrealistic. It might
be difficult for readers to understand how and why they would
apply these techniques to their own code.
Also, the vocabulary used is different from the official
vocabulary in the language spec. For example, what the tutorial
calls "decomposition" is officially called "template argument
deduction" [1]. Using official terminology whenever possible
makes it easier for users to find relevant information with
search engines, get help from the community, and integrate
knowledge from multiple sources.
[1] https://dlang.org/spec/template.html#argument_deduction
More information about the Digitalmars-d
mailing list