Re:TeX Live 2017 released
by ivan_ah on Sunday June 04, 2017 @09:18AM
(#14481407)
Yes .tex programming is probably the least intuitive kind of language I've ever seen. Here is a FizzBuzz in vanilla .tex for anyone who curious to see what that's like:
[ Parent
| on HN ]
Re:TeX Live 2017 released
by pwdisswordfish on Sunday June 04, 2017 @01:10PM
(#14482413)
That's pdfTeX, not vanilla TeX.
$ tex
This is TeX, Version 3.14159265 (TeX Live 2016/Debian) (preloaded format=tex)
**\show\numexpr
> \numexpr=undefined.Honestly, that doesn't seem that non-intuitive to me. Certainly missing opening and closing brackets, but if closing with fi is a common idiom of old languages. The rest doesn't seem that bad. Just verbose.
I had never seen this kind of yoda-speak before:
\unless \ifnum \X>100 \repeatI guess to me it doesn't read that much worse than "if (!(x < 100))", which is somewhat bad form, but not unreadable. (More likely would it have been "if (!aboveThreshold(x))". I know I have seen similar in some lisp code. At least, I have seen "unless" before.
Don't take my comment as my rushing out to embrace TeX. I just don't think it is nearly as bad as its reputation.