Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Language mavens: Is there a programming with "if then else ENDIF"syntax?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Steven D'Aprano, post: 3979637"] That's crazy talk. IF...ENDIF is *syntax*, not a programming model. How is this hypothetical Python-like syntax not object oriented? class Parrot: def speak(self): if self.name is None: name = "Polly" else: name = self.name endif return "%s wants a cracker!" % name Syntax controls *how* you instruct the compiler, the programming model controls *what* you instruct the compiler to do. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Language mavens: Is there a programming with "if then else ENDIF"syntax?
Top