News for hackers. Stuff that matters.
Re:If-then-else had to be invented by throwawaw on Sunday December 13, 2020 @12:49PM (#25408413)
I wonder whether anyone has used "otherwise" for this. It'd be a simple alias for "else", but it'd certainly sound natural:

    if (X) { doY(); }
    otherwise { doZ(); }
Re:If-then-else had to be invented by erk__ on Sunday December 13, 2020 @12:56PM (#25408477)
Towards the bottom of the article there is a example of MAD[0] that uses something similar, and there is also the John McCarthy proposal which also uses otherwise. I could imagine it being used in a language that had a tight connection to maths as otherwise is often used there.

[0]: https://en.wikipedia.org/wiki/MAD_(programming_language)

Re:If-then-else had to be invented by throwawaw on Sunday December 13, 2020 @01:12PM (#25408636)
Oh, right, the article...