Domain-specific languages vs. library of functions

前端 未结 8 1454
予麋鹿
予麋鹿 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:37

    I would think that the purpose of a DSL was to abstract away details and enable a programmer (or implementor) to be productive by keeping their head in the domain, so to speak.

    If you want to explain the details of a collection of algorithms, I would stick with one of the usual suspects (C++?).

    An important consideration is whether your audience already use a single language predominately. If so, the choice has been made for you!

    Another thing you might want to consider, is that by choosing a popular mainstream language, your book is applicable to a wider audience, without first having to 'learn' a DSL.

提交回复
热议问题