News for hackers. Stuff that matters.
Re:Why Structure and Interpretation of Computer Programs Mat... by lmm on Sunday June 16, 2024 @06:22PM (#40700608)
I think it's innate that having differentiated syntax for different types of grouping is natural. Look at mathematical papers where people will introduce new brackets with new meanings. (Indeed look at the entirety of QM for a clear, simple case)
Re:Why Structure and Interpretation of Computer Programs Mat... by nequo on Monday June 17, 2024 @01:51AM (#40702678)
Some Scheme and Lisp dialects have that. For example, Racket often uses square brackets instead of parentheses for things like clauses of a cond expression, and Clojure uses square brackets for vector literals and curlies for hash map literals.
Re:Why Structure and Interpretation of Computer Programs Mat... by lispm on Monday June 17, 2024 @02:52AM (#40702934)
> "Look at mathematical papers where people will introduce new brackets with new meanings"

Common Lisp has left brackets like {} and [] to the user (aka developer). It supports "reader macros", where the user can extend/supersede the syntax of s-expressions.

So, specialized tools/libraries/applications can introduce these brackets for their own use. Examples are embedded SQL expressions, notations for Frames (special objects, in kind of a mix of OOP and Logics), grammar terms, etc.

Thus it explicitly supports the idea of "people will introduce new brackets with new meanings".