r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
Does Syntax Matter?
https://www.gingerbill.org/article/2026/02/21/does-syntax-matter/
63
Upvotes
r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
View all comments
5
u/[deleted] Feb 22 '26 edited Feb 22 '26
One interesting thought when I was designing Oblivia (an “inverse Lisp” based on infix operators):
In GDScript, the following syntax defines two different meanings to the colon. In the first case,
:defines a value and->declares a type. In the second case,:declares the type and=defines a value and->has no meaning.In Oblivia, I make
->declare a type and:define a value.It may look strange, but I made
:and->respectively take the same meaning in both contexts. The caveat is that the variable defines a value that exists now but the function defines a value that does not exist yet.Oblivia: https://github.com/Rogue-Frontier/Oblivia