Domain-specific languages vs. library of functions

前端 未结 8 1444
予麋鹿
予麋鹿 2021-02-07 08:13

This may be subjective, I don\'t know: I have this problem, which I\'m kind of equating to the \"what language for this project?\" question, since I can\'t seem to solve it.

8条回答
  •  无人共我
    2021-02-07 08:53

    You could choose a DSL to match exactly the domain you're dealing with. Programmers can be comfortable with a general purpose language and applying it in many situations. Your non-programmers may benefit from a language that is directly relevant to them. It can also be easier for them to understand if keywords and concepts match their expertise.

    Like most things, it's a trade-off. A DSL should be easier for your audience, but it could well be more work for you.

提交回复
热议问题