appendable alias squence

monkyyy crazymonkyyy at gmail.com
Tue Feb 1 18:59:39 UTC 2022


On Tuesday, 1 February 2022 at 15:30:17 UTC, Nick Treleaven wrote:
> On Tuesday, 1 February 2022 at 01:39:19 UTC, monkyyy wrote:
>> https://monkyyy.science/posts/mutable_templates/
>
> I only skimmed the article as I'm AFK, but:
>
>> I hate verbose folds, I hate this syntax, I hate that the 
>> pieces are in a different order then for loops; but its how to 
>> do heavy lifting in templates.
>
> Perhaps alias assign would help? It might actually be related 
> to why the `foo=foo_!(data);` bug 'works'.
>
> https://dlang.org/spec/declaration.html#AliasAssign

I doubt bug is related to alias assign given I found it before (I 
think), and while I haven't played with alias assign yet I think 
theres going to be some baseline safety features to attempt 
making this sort of thing not happen


More information about the Digitalmars-d mailing list