Someone needs to tell the mathematicians they are allowed to use variable names longer than a single character now.
nominal_datatype fm =
Mem tm tm (infixr "IN" 150)
| Eq tm tm (infixr "EQ" 150)
| Disj fm fm (infixr "OR" 130)
| Neg fm
| Ex x::name f::fm binds x in f
These are not pencil-paper formula notation, they are declarations of named entities, and they don't need to. be so terse.The programming world converged on full word variables, but it also converged on {} instead of BEGIN END etc.
Alex
Well, since we don't use multi-letter variable names, no such distinction is necessary! But if, for some reason, we did do so, then these two cases would be typeset in LaTeX as \(varname\) and \(var\,name\) (or, rather, \(\mathit{var}\) and \(\mathit{var}\,\mathit{name}\), since TeX correctly interprets \(var\) as semantically `var` anyway).
You remember the story about the Fox and the Grapes, right?
https://github.com/golang/go/wiki/CodeReviewComments#variabl...