request switch statement with common block
Andre Artus
andre.artus at gmail.com
Mon Aug 5 09:40:19 PDT 2013
On Monday, 5 August 2013 at 11:32:14 UTC, QAston wrote:
> 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.
I was under the impression that D has nested functions, unless by
inner function you mean something else.
More information about the Digitalmars-d
mailing list