Possible improvement of phobos map?

H. S. Teoh hsteoh at qfbox.info
Wed Jul 6 17:21:29 UTC 2022


On Wed, Jul 06, 2022 at 09:00:59AM +0000, JG via Digitalmars-d wrote:
> On Wednesday, 6 July 2022 at 01:28:32 UTC, H. S. Teoh wrote:
> 
> > In fact, I wonder if the current map couldn't be extended to
> > handle this.
> 
> Yes, it definitely could (my second version does this). I guess one
> downside is that several other range algorithms could do with the same
> change (rather than using bind which requires no change).

IMO it's worth it. Or maybe use bind internally in Phobos so that we
don't have to repeat the implementation across different Phobos
functions.  But the user-facing API should be as smooth as possible.


T

-- 
People tell me that I'm paranoid, but they're just out to get me.


More information about the Digitalmars-d mailing list