Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] LoopUnit

Hi Christian,

Quoting Christian Krause <henshin.ck@xxxxxxxxx>:
It's more the fact that most users want to implement a While-Loop rather than a For-Loop (with a fixed count) and it is not really intuitive why one should use a "CountedUnit" for that...

but now, we have actually reduced expressiveness and added complexity for users who want to construct loops with a fixed number of iterations. If we would let the LoopUnit have its current iteration count as a Parameter, different kinds of loops could be constructed without compromising expressiveness, performance nor user effort (Gregor has shown that this can already be done, but is slower and needs a user-generated model to store the current iteration count).

Felix



Back to the top