A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-February/032744.html below:

[Python-Dev] Extended Function syntax

[Python-Dev] Extended Function syntax [Python-Dev] Extended Function syntaxPaul Moore lists@morpheus.demon.co.uk
Sun, 02 Feb 2003 17:14:43 +0000
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