On Monday, 29 April 2019 at 13:08:59 UTC, Mike Parker wrote:
Victor Porton shows how he uses string mixins to generate structs with Nullable fields at compile time to help him pass arbitrary subsets of explicit and default arguments to functions in D.

The blog:
https://dlang.org/blog/2019/04/29/flexible-default-function-parameters/

Reddit:
https://www.reddit.com/r/programming/comments/bip83x/flexible_default_function_parameters_in_d/

Yeah... this isn't a topic that will get any attention on Reddit. It might be nifty by D standards, but for a person not familiar with D first thought will be "why not just use named/keyword arguments", second thought will be "oh, D doesn't have them? so why not just use builder pattern then?".

Reply via email to