I like it. It makes regular use of a decorator less cluttered and I think it matches the conceptual purpose of annotations well. Dave On Nov 1, 2007, at 10:28 AM, David Binger wrote: > Currently, templates are denoted by [html] (or [plain]) between the > function name > and the parameter list. > > I've proposed (and implemented) an alternative form I call template > decorators, > where "@[xml]" or "@[str]" appears on the line before the def. > > I've thought of another possibility that I want to run by you. > > In python 3, we can (optionally) annotate parameters and functions > like this: > > def f(x:int, y:list) -> float: > > I'm proposing using a similar annotation syntax for annotating the > function name, > using a colon and either "xml" or "str" to say that the function is > a template > and that it should be compiled using the "xml" transformation, or > the "str" > transformation. > > def f:xml(): > > or > > def f:str(): > > > Maybe this notation fits best into the python of the future. > > I like that it is as grep-able as the current notation, but a > little shorter. > > What do you think? > > > > _______________________________________________ > QP mailing list > QP@mems-exchange.org > http://mail.mems-exchange.org/mailman/listinfo/qp >