Dice again: Are they just trying to be stupid?
Followup to this previous entry:

This ad's pseudocode is:
if (threshold = salary_sucks) {
goto = dice.com();
} else {
suck_it_up;
}
end
Never mind the atrocious formatting. WTF is the end doing there? They started out using {} pairs, then suddenly an end token, after properly balanced braces?
This was written by someone who can't code, and I think even less of these people now than I used to.
tubby | October 12, 2005 06:59 AM
Actually the code works in Clipper and variants of FoxPro I think. The final end is interpreted by the computer as whatever is structurally required. ENDDO and ENDIF are created from a simple END.
Please do not post this publicly, Peter. I don't want to take away from your original message.
Thanks.
seebs_lawyer | October 12, 2005 09:23 AM
I fed it to perl. I got this:
Can't modify constant item in scalar assignment at dice.txt line 1, near "salary_sucks) "
Execution of dice.txt aborted due to compilation errors.