Quick question to the functional language people and W3c people here

There’s SVG, which is an XML application

What if there were SVG but not XML, instead, it was S-expressions?

All of SVG as it currently is, but in S-expressions instead of XML

Would there be a disadvantage?

#svg #FunctionalLanguage #sExpressions

@Li We'd just have #XML instead, because somehow the obvious superiority of #SExpressions isn't understood by all.

@enigmatico #JSON.

I think the problem isn't quite that simple, because most of the issues with #XML are representational.

Consider #SXML-like equivalents for #MathML https://en.wikipedia.org/wiki/MathML#Content_MathML

A Plist is even shorter and simpler a representation than JSON objects.

#SExp #SExpressions

MathML - Wikipedia

I have been wanting for a while to edit linear #sexpressions in
different contexts in #emacs. Some time ago I wrote a function using
the separedit #elisp library and it has been so useful
and so simple to write that I feel I have to share it!

(so (if (you (have to (edit (linear (s- (expressions (maybe this)))))))))

is interesting for you!

https://alejandrogallo.github.io/blog/posts/editing-linear-s-expressions/

#emacs #EmacsLisp #lisp #LispBlog #blog #ergonomics
#LiterateProgramming

Editing linear s-expressions

I have been wanting to edit some s-expressions on single lines, like for instance to edit org-mode macros. This is a very short blog post but I just wanted to share this function that allows to edit a linearised s-expression quite trivially. For instance in a certain buffer I have a local variable like this # Local Variables: # eval: (add-hook 'after-save-hook (let ((name (buffer-name (current-buffer)))) (lambda () (message "Automatically committing %s" buffer-name) (ale/scratchpad/stage-and-commit))) nil t) # End: and of course this is extremely annoying to edit.

Ale's Ecke