Allow actions as action parameters

Service Studio
On our radar
It would be nice if it was possible to define "template" actions, i.e. actions that have one or more actions as input parameters and use them in their body. The idea is not new, it is what is known as the template method pattern (see: https://en.wikipedia.org/wiki/Template_method_pattern) or the strategy pattern (see: https://en.wikipedia.org/wiki/Strategy_pattern). 
This would help minimize code duplication.
An example is the need to log information just before and just after an action. If we want to do this for 30 different actions, we have to place the log actions on each of the 30 actions. If we could define a template action, we would only need to define a single "template" action and "wrap" each call to the 30 different actions with the template action.

Java and .Net already allow for lambda functions/expressions. This means that this could be done without much problems.
Created on 12 Feb 2016
Comments (1)
I don't think it's a matter of the possibility.

It's more, how do you keep TrueChange(tm) in order.
Imho, the reason why while-loops, advanced programming patterns are NOT implement is to make sure the application is technically always correct, so you don't end up with unexpected runtime errors.

hence they don't promote adv. queries, using [2] in lists etc.