Tsoding - How Not to Market Your Language Features
Dukc
ajieskola at gmail.com
Fri Mar 28 09:25:09 UTC 2025
On Friday, 28 March 2025 at 07:40:08 UTC, Sergey wrote:
>
> (good for D he doesn't do web development and doesn't know that
> D has nothing to do in modern cloud web area).
>
Can you elaborate that "has nothing to do"? Do you mean that
anything D offers over the common languages is of no use in web
development?
My recent experience disagrees. I wanted to preprocess HTML pages
in my Vibe.d server, but I couldn't make them Diet templates
since they are processed through [Jekyll](https://jekyllrb.com/)
which outputs HTML.
So, I entered my D code inside a `<script type="dlang">` block,
and had my application to parse the HTML file at compile time,
putting the D script in a mixin. In most other compiled
languages, I would have had to write a new program to extract the
preprocessor script out of the HTML, adding another phase to the
build process - quite a bit more complicated! The CTFE features
of D really simplified my life here.
More information about the Digitalmars-d
mailing list