What's your opinion on using function names in bac...
# dsl
a
What's your opinion on using function names in backticks in DSL? Apparently it is a bad practice, since official docs suggests to use them only in tests. My goal is to create something human readable like
doSomething() on condition that <somePredicate>
, where
on condition that
is no more than a syntactic sugar to pair some execution context with a triggering condition. This could be achieved with either "normal" way of creating several infix functions with several intermediate useless objects or just with one infix extension function in backticks, which will look a little bit uglier :```doSomething()
on condition that
<somePredicate>``` but will save a lot of tedious work.