Jeremy Hylton <jeremy@alum.mit.edu> writes: > It's unfortunate that you can't extend the syntax, too. You often don't need to extend the syntax, as long as the existing syntax and semantics do the right thing. My favourite example of this is the C++ idiom of "resource acquisition is initialisation", which combines the semantics of deterministic destructors and the syntax of being able to define a new variable scope (via {...}) whenever you need to, to give a very readable and general solution to all sorts of acquire/release problems. In my view, Guido's thunk proposal gives the right semantic flexibility to let people define idioms like this within the fixed syntax. Even if the generality of it scares him :-) Paul. -- This signature intentionally left blank
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