01-12-2025, 02:23 AM
(01-12-2025, 02:03 AM)JRace Wrote:(01-12-2025, 12:53 AM)bplus Wrote: Still crappy is saying goto 10 twice. But you pay a price for one-liners.
Who needs GOTO?
For that matter, who needs IF...THEN...ELSE?
Quote:(In the world of C, I've always enjoyed deeply nesting ternary operators, imagining the reactions of people who will have to maintain the code later. Debugging them sux, but nesting them is fun.)Code: (Select All)Screen 1: _Font 8: For c = 1 To 1920: Print _IIf(Rnd < .5, "\", "/");: Next
Of course the name TenPrint would no longer make sense.
(Forget one-liners; with functions like _IIF to abuse I'm getting ideas about an Obfuscated Basic contest!)
In this case, you don't even need the _Font 8. Screen 1 defaults to font 8.