archives

Library vs. domain specific language

I guess this question was already discussed here on LtU, but I did not find it.

When is it necessary and rewarding to design a domain specific language, instead of creating a library for some general purpose language? Is it just more convenient syntax? What are the aspects that should be taken into account on deciding this question?