james
2019-8-13 12:12:39

@james has joined the channel


tgbugs
2019-8-14 00:17:51

Posting this here instead of in the github syntax issue because it is pure flamebait:

While on the topic of named ends, why not add to the list of syntax to consider the classic <my-start> body ... </my-end> for naming source blocks which is used by well over 80% of all digital source code in existence and is familiar to well over 50% of software developers? It would cut out the need for the use of begin and end altogether!


alexknauth
2019-8-14 00:24:40

Oh sure, then programs will look like this all the time: <module> <define> <f/> <lambda> <parameters><x/></parameters> <if> <test><x/></test> <then>1</then> <else>2</else> </if> </lambda> </define> <f><yes/></f> <f><no/></f> </module>


alexknauth
2019-8-14 00:25:57

btw I have this implemented already, this is a working example in a language that I called “xml-exp”


soegaard2
2019-8-14 00:28:03

On the plus side: there are no parentheses.


tgbugs
2019-8-14 00:28:27

nice, then it’s half way to being able to pass pass the proposed criteria for #lang inclusion!


tgbugs
2019-8-14 02:02:31

Better yet, if we used xml-exp then languages like https://github.com/AlexKnauth/musicxml could be implemented top to bottom in a homogeneous surface syntax!


tgbugs
2019-8-14 02:03:33

(for any passers by: I am parodying my own arguments about s-exps)


alexknauth
2019-8-14 02:40:55

Both my musicxml library and the xml-exp language use the txexpr and txexpr-stxparse libraries, and they use syntax objects of X-Expressions to provide source locations for errors in the code