Re:Writing HTML with Racket and X-Expressions (2019)
by TeMPOraL on Wednesday April 01, 2020 @03:43AM
(#22746588)
So with entity references, I guess it's a DAG then, with extra idiosyncratic grammar. That doesn't change my main point: it's a structured language. Expressions in a structured language should be built up through an API that reflects that structure, and thus maintains the structural correctness of constructed expression at all times. Not by gluing arbitrary strings together.
[ Parent
| on HN ]
Re:Writing HTML with Racket and X-Expressions (2019)
by tannhaeuser on Wednesday April 01, 2020 @04:30AM
(#22746788)
Except that HTML/SGML is a format invented for authoring and delivering semistructured text. At the risk of sounding arrogant, the idea is to have domain experts (rather than programmers) create stand-alone documents that can then be rendered and type-checked, can be refined by web developers using text macros, page boilerplate, transformations/stylesheets, and script, and that can (but don't have to be) used for rendering dynamic content from markup or other sources such as services and/or databases, while remaining self-standing, autonomous, type-checkable documents in a larger workflow.