News for hackers. Stuff that matters.
Re:If-then-else had to be invented by memetherapy on Sunday December 13, 2020 @03:29PM (#25409918)
Hmmm, thinking about my dialect of English (Lancastrian) I can certainly say else without an or and it doesn't sound unnatural to my ears. Something like "if you're hungry now then I can make you a sandwich, else we'll eat when we get to the pub" doesn't sound more awkward than using otherwise. I can't say whether that's just because the Lancastrian dialect preserves quite a few old fashioned usages that have fallen out of use in "standard" (i.e. southern posh) British English and American English, whether it's common usage in other dialects of British English, or if its just because I'm a programmer. Going to go ask some English teachers!
Re:If-then-else had to be invented by memetherapy on Sunday December 13, 2020 @05:53PM (#25411256)
The consensus amongst the three English teachers I asked was that it should be "or else" or "otherwise" and that it's probably ungrammatical, although none of them could explain why. The one who is also an actor said "it works as a line" and she wouldn't think twice about it in a script or as written dialog. Interesting one though!
Re:If-then-else had to be invented by dahart on Monday December 14, 2020 @06:47PM (#25425033)
It's definitely not ungrammatical. But it is uncommon today, especially in General American English.
Re:If-then-else had to be invented by mjburgess on Sunday December 13, 2020 @04:35PM (#25410533)
I think it's relatively common in british english.

Certainly, from cumbria, it sounds quite natural also.

It's more spoken dialect than written. "What else do you want to do?" etc.

Re:If-then-else had to be invented by pwagland on Sunday December 13, 2020 @06:20PM (#25411488)
Funnily enough, to me "what else" sounds more like "what would you like to do in addition" as opposed to "what would you like to do otherwise".

Certainly in Australia, "anything else with that" is quite common in shops, particularly in food shops, or pubs. Or at least it used to be be when I was there.

Re:If-then-else had to be invented by quietbritishjim on Sunday December 13, 2020 @06:55PM (#25411744)
Sure, but if you ask for A, B and C and someone asks "what else?" then they mean "what about things that aren't A, B or C?" It's still the same basic meaning, set complement, but about things rather than logical states.
Re:If-then-else had to be invented by quietbritishjim on Sunday December 13, 2020 @06:50PM (#25411718)
The question isn't so much whether "else" is used at all, but rather whether it's used as a conjunction. That's why the article author mentioned "or else": here "or" is the conjunction, so that proves "else" isn't fulfilling that role. In this example you gave:

> What else do you want to do?

"else" is acting like a noun rather than a conjunction (compare with "what activity do you want to do?).

Re:If-then-else had to be invented by nicoburns on Sunday December 13, 2020 @05:06PM (#25410836)
Works in my genericsSouthern British english dialect too. Think it might have been dropped in American english where it might be considered quite formal.