Here are the keywords.
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
They brought back some old favorites from 'c', like break and continue. They also added macro, I think, in the form of Lamba key word.
Notice we can pass or raise, good for poker, what do they mean? Pass has the same meaning as in poker, do nothing. Raise means, interrupt the program, something is wrong. They also have try and except, which lets the programmer catch and report errors without crashing the program.
But what is really important is the import, it lets the programmer control library inclusion.
Do I use Python? No, except to try it out. But that is likely to change as Basic no longer cuts the mustard. I worked mostly in 'c', and that language allows almost anything.
No comments:
Post a Comment