std.algorithm.countUntil and alias

H. S. Teoh hsteoh at qfbox.info
Wed Oct 23 18:39:15 UTC 2024


On Wed, Oct 23, 2024 at 06:10:07PM +0000, Anton Pastukhov via Digitalmars-d-learn wrote:
> On Wednesday, 23 October 2024 at 18:05:15 UTC, monkyyy wrote:
> > 
> > Its intended and probably the right decision, but good luck finding
> > relivent docs.
> 
> What's the motivation behind it? For me, it looks like a weird edge
> case but I'm just probably missing something here

The key here is to understand that "alias" != "macro".  If you're
looking for a way to shorten long expressions, `alias` is not what
you're looking for.


T

-- 
Shin: (n.) A device for finding furniture in the dark.


More information about the Digitalmars-d-learn mailing list