Aug-19-2019, 01:02 AM
(This post was last modified: Aug-19-2019, 01:02 AM by boring_accountant.)
Quote:if it does not quit early it can still be equivalent to that code in terms of what is returned.That would not make it equivalent in terms of behaviour (i.e. "quitting early") which is part of the code.
Quote:that semantic is the effect of a sentence in context. this was learned in my basic journalism writing class (a good class to take for documentive writing).The example is within the context of explaining the behaviour of a given function. The Python code is equivalent not only in return value but also in behaviour. Also, I don't know about your culture, but in mine it's frowned upon to be arrogant to people helping you and doubling down on it after they have shown you you were wrong.
Cheers