

2·
2 months agoMay be personal preference, but d2 blows mermaid out of the water. And it is a single executable, no npm needed.


May be personal preference, but d2 blows mermaid out of the water. And it is a single executable, no npm needed.


Yes and no. I find short lambdas easier to read. In lisp you have flet, labels, which allows you to name the elements without introducing external functions.
But of course there are cases where the proposed is useful, e.g. for reuse. I can imagine applyModifiers could be called in more than one place.
Anyway, upvoted because it’s an interesting discussion.
Well now I’m writing my own thing :) but that will be a while. I haven’t found anything better so far.
Btw I also find the d2 lang nicer and more uniform, while mermaid is a bit more graphviz dot-like.