Guido van Rossum <guido@python.org>: > synchronized(lock): > BLOCK > > instead of > > lock.aqcuire() > try: > BLOCK > finally: > lock.release() > > I assure you that this makes programs that use locks more readable, > which reduces maintenance costs down the road. But at the same time > we can't hope to reduce every idiom to a single statement, and we must > be careful not to destroy the language by adding too many "neat > tricks". I'm going to have to come out against this idea. I think it violates "explicit is better than implicit", and is perilously close to being mere syntactic sugar. -- <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4