Questions on the new __traits(parameters)

Timon Gehr timon.gehr at gmx.ch
Thu Mar 10 23:09:19 UTC 2022


On 10.03.22 23:51, H. S. Teoh wrote:
> On Thu, Mar 10, 2022 at 05:37:03PM -0500, Steven Schveighoffer via Digitalmars-d wrote:
> [...]
>> On the other hand, opApply is pretty out of favor now, so maybe it's
>> not going to be as bad of an effect.
> [...]
> 
> Parallel foreach still depends on opApply, though.  Is it really "out of
> favor"?

Not with me. I think it's pretty useful. (It's a limited form of call/cc.)

Interestingly, parallel foreach barely uses the nicest parts of opApply:
"std.parallelism.ParallelForeachError@(0): Cannot break from a parallel 
foreach loop using break, return, labeled break/continue or goto 
statements."


More information about the Digitalmars-d mailing list