r/programming • u/csb06 • Jun 27 '20
HTML++: Write HTML documents using C++ templates
https://github.com/csb6/html-plus-plus17
u/st_huck Jun 28 '20
It looks very reasonable even for actual use but then I imagined how compiler errors would look like
16
4
u/JohnnyElBravo Jun 28 '20
This is esoterical, right?
I'd like to propose the following mashups:
Downstream: an assembler to C code-generator
Ourobouros: A Python to C compiler
Merge: An (Objective-C and Java) to javascript transpiler.
Cross stream: A .Net vm written in Java and a JVM written in C#
1
4
u/marco89nish Jun 28 '20
Kotlin wore it better
1
u/D_0b Jun 28 '20
far from it. with all the + and { }
1
u/marco89nish Jun 28 '20
I think the pluses are not necessary with newer versions of Kotlin and {} is lot more common way to make a scope than <>. Not sure about latest C++ compiler but you used to get 10 page error for smallest error in templates, so I'd take Kotlin's type-safe DSLs over it any day od the week.
2
u/Compsky Jun 28 '20
Honestly might be very useful for one of my projects. Would be nice to replace macros with templates.
2
1
1
-27
26
u/Hipolipolopigus Jun 27 '20
If nothing else, I don't hate the syntax.