Open jmvanel opened 7 years ago
See the TODO's in code:
grep TODO abstract_syntax/src/main/scala/deductions/runtime/abstract_syntax/FormSyntaxFactory.scala
An idea is to use function chaining in Scala:
val pipeline = Function.chain(Seq( func1, func2 ))
pipeline(initFormSyntax)
// or
(func1 andThen func2)(initFormSyntax)
In english
A follow-p of #169 The steps must be good algorithms in functional programming. That is to say a sequence of pure functions, one per sub-step:
Concerned steps
Refactorings
def step(formSyntax: FormSyntax): FormSyntax
En français
Il faut que les étapes soit des bons algorithmes en programmation fonctionnelle. C'est à dire un enchaînement de fonctions pures, une par sous étape: