Replace bindings by declare blocks #724
Labels
architectural decision
Discussion of design decision
specification
Related to specification package (e.g., specification parsing)
Context and Problem Statement
In #701 the introduction of declare blocks is proposed. Declare blocks provide a similar functionality as the already existing bindings. It could be beneficial to replace bindings by declare blocks.
Example
Without binding or declare block
With binding
With declare block
Considered Options
O1 Replace bindings by declare blocks
+ Keep DSL smaller by preventing two ways to do essentially the same thing
+ Declare blocks are probably easier readable than bindings as type of variable is stated explicitly
+ Less implementation and maintenance effort (validation and code generation easier to implement for declare blocks than bindings as no type inference is needed)
O2 Keep bindings as well as declare blocks
+ Bindings are easier to write (as bindings are less verbose than declare blocks)
Decision Outcome
O1
The text was updated successfully, but these errors were encountered: