Re[4]: [ANN] teepeedee2 — fastest web-server in LISP
От: thesz Россия http://thesz.livejournal.com
Дата: 26.05.09 14:50
Оценка: 19 (1)
t>> Уже подняли тему DSL супротив библиотек.
M>Что-то я не понимаю, как у них система отображения комментов рабоатет. ПРо DSL'и против библиотек не увидел

http://slashdot.org/comments.pl?sid=1244601&cid=28088457

Yes, you can use macros to enable extremely high level of code reuse, effectively 100% (if theres any kind of pattern in your code, you can write a macro to encapsulate that). But it also means that you're effectively defining your own DSL, and then writing your program in that — and when someone else needs to understand and maintain your code, they'll have to figure out that DSL first.

This isn't really fundamentally different from plain function/class libraries (they are also DSLs), but the expressivity of macros is so much higher than plain function calls (even with Smalltalk/Ruby style blocks and other such facilities) — and, consequently, so is their complexity.

Yours truly, Serguey Zefirov (thesz NA mail TOCHKA ru)
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.