ternary operator
James J. Besemer
jb at cascade-sys.com
Tue Feb 11 01:30:14 EST 2003
Delaney, Timothy C (Timothy) wrote:
> I must say, I don't remember that from my two weeks of COBOL
> programming on work experience for school back in 1989(?).
I thought the cobol way of doing things was (partial excerpt):
if user_address = "1700 NW 3rd Street":
send_bill_to_1700_NW_3rd_street()
elif user_address = "1701 NW 3rd Street":
send_bill_to_1701_NW_3rd_street()
elif user_address = "1702 NW 3rd Street":
send_bill_to_1702_NW_3rd_street()
elif user_address = "1703 NW 3rd Street":
send_bill_to_1703_NW_3rd_street()
elif user_address = "1704 NW 3rd Street":
send_bill_to_1704_NW_3rd_street()
elif user_address = "1706 NW 3rd Street":
send_bill_to_1706_NW_3rd_street()
(etc.)
JUST KIDDING!!!! ;o) !!!
Then there's the new Cobol with OO extensions, called
"ADD ONE TO COBOL" ;o)
Sorry, old jokes, couldn't resist.
Regards
--jb
--
James J. Besemer 503-280-0838 voice
2727 NE Skidmore St. 503-280-0375 fax
Portland, Oregon 97211-6557 mailto:jb at cascade-sys.com
http://cascade-sys.com
More information about the Python-list
mailing list