Re:Pretty.c
by bitwize on Thursday October 24, 2024 @01:47AM
(#41932304)
I'm reminded of the guy who did
and a whole bunch of other macro-larkey just to make C look more like Pascal. Only then would he deign to code in it.
[ Parent
| on HN ]
Now that's just silly. And I see the backwards keyword terminators (LOOP/POOL).
I have wondered why we have case/esac, if/fi but while/done. I imagine the author himself figured that while/elihw would just be entirely ridiculous.
Just call it wyl/lyw. Pronunciation maintained, problem solved.
> I have wondered why we have case/esac, if/fi but while/done.
With the reverse-keyword convention we'd get "od", not "elihw", though.
while ... for ...
do do
... ...
od od
The 'od' utility already existed, apparently, so Bourne opted for "done".[edit: typos]