request switch statement with common block

QAston qaston at gmail.com
Mon Aug 5 04:32:13 PDT 2013


On Monday, 5 August 2013 at 09:37:11 UTC, dennis luehring wrote:

> this type of sub-branching "de-looping" is slow (if performance 
> is relevant) and just not foreach-able, and so not 
> functional-style programming - its called "for loop index micro 
> management for unknown reasons" - but many programmers prefer 
> it very much :)

It's caused by lack of inner functions in many languages - people 
use switch+flags or for loops to be more DRY.


More information about the Digitalmars-d mailing list