how to do iota(0,256) with ubytes ? (cf need for iotaInclusive)

Marc Schütz via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 12 02:24:10 PDT 2015


On Sunday, 11 October 2015 at 21:31:27 UTC, Jonathan M Davis 
wrote:
> Their use is discouraged at this point, but they're used by so 
> much code that I'd be very surprised if they were ever 
> deprecated. And until we have a solution for being able to 
> compare non-string lambdas for equality, they're _defintely_ 
> not going to be deprecated. Regardless, AFAIK, neither Walter 
> nor Andrei has ever stated that they will be removed from 
> Phobos - just that we want to move towards using the newer 
> style lambdas instead.

Besides, `reduce!"a+b"` and `map!"a*a"` are more concise than the 
lambda versions and can therefore be preferable in some 
situations.


More information about the Digitalmars-d mailing list