Re: [Python-ideas] Syntactic Sugar: Post-Conditions for Guard Clauses
On Thu, May 17, 2018 at 12:55 PM, Manuel Barkhau wrote: > continue if not is_valid(elem) > ... > how is this better than: if not is_valid(elem): continue ? But even if it is, that might be a consideration for a new language, but adding it to python now is prett
[Python-ideas] Syntactic Sugar: Post-Conditions for Guard Clauses
Hello, has there been consideration for implementing the following new syntax: def my_fun(elements): results = [] for elem in elements: ... continue if not is_valid(elem) ... results.append(result) bre