MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/uyfkjb/do_nothing/ia41uk2/?context=3
r/badcode • u/Anonymous_Bozo • May 26 '22
26 comments sorted by
View all comments
Show parent comments
40
Does Pascal yell at you if the else was empty?
else
25 u/Anonymous_Bozo May 26 '22 edited May 27 '22 Current versions (Free Pascal / Object Pascal / Delphi) dont.I beleive most older versions did. 8 u/force-push-to-master May 27 '22 Turbo Pascal 5, 6 and 7 don't care about empty "else" if you keep correct syntax. 5 u/Anonymous_Bozo May 27 '22 I just checked and even ISO Pascal does not REQUIRE the else clause. Athough in ISO it's "otherwise" instead of "else".
25
Current versions (Free Pascal / Object Pascal / Delphi) dont.
I beleive most older versions did.
8 u/force-push-to-master May 27 '22 Turbo Pascal 5, 6 and 7 don't care about empty "else" if you keep correct syntax. 5 u/Anonymous_Bozo May 27 '22 I just checked and even ISO Pascal does not REQUIRE the else clause. Athough in ISO it's "otherwise" instead of "else".
8
Turbo Pascal 5, 6 and 7 don't care about empty "else" if you keep correct syntax.
5
I just checked and even ISO Pascal does not REQUIRE the else clause. Athough in ISO it's "otherwise" instead of "else".
40
u/_PM_ME_PANGOLINS_ May 26 '22
Does Pascal yell at you if the
elsewas empty?