Every #programmer, including me, esteems the syntax more than the semantics, whe...
amen zwa, esq. @AmenZwa@mathstodon.xyz
Every #programmer, including me, esteems the syntax more than the semantics, when semantics is actually more important than syntax in #programming.
This imbalance even appears in the modern programming language design and implementation textbooks, which cover the grammar of the syntax in nauseating details, but give short shrift to denotational semantics. And none of the currently popular modern languages come with a mathematically proven definition, relying instead on the hand wavy operational semantics baked into the compiler.
Around 2023, I wrote an article called "A Forlorn Hope of #Fortran Modernisation", in which I proposed a cleaner Agda-like syntax for Fortran, the seventy-year-strong scientific computing language, along with dependent types as a semantic crutch. (Yes I, too, pushed the semantics into the background, there.)
https://amenzwa.github.io/stem/PL/FortranModernisation/
Some forty years earlier, when Bailes published his paper "A Rational #Pascal" in 1983, I was still an EE undergrad. In that paper, Bailes proposed a less restrictive syntax for Pascal, then a ten-year-old, popular "first language" for CS undergrads, and industry-born C was still considered uncouth by the ALGOL-fed academics.
https://ro.uow.edu.au/ndownloader/files/50546136
These days, we have Go, Nim, Zig, Odin, and other system programming languages designed as "the replacement" for the {C, Pascal, ALGOL} syntax, but not the semantics.
In our field, times change, but attitudes remain forever the same.