From: "Mauricio Fernández" Date: 2003-09-09T16:25:13+09:00 Subject: Re: ANN: MetaTags 1.0 On Tue, Sep 09, 2003 at 01:25:58PM +0900, Gavin Sinclair wrote: > > Hi, > > > > In message "Re: ANN: MetaTags 1.0" > > on 03/09/09, Hal Fulton writes: > > > > |Much easier than I thought. I'll bet there are some gotchas, > > |though. > > | > > |Matz?? > > > > Yes? It is hard for me to merge this, because > > > > * it's no better than e.g. "y %{foo: bar}". > > * it's against my policy of "syntax should be stable". > > > > I agree with usefulness of user-defined literals, and this is much > > disciplined than generic reader macros, but still we need to discuss > > pros and cons. > > > > matz. > > A thought occurred to me. If %y{foo: bar} is seen as desirable as a short > and simple way of declaring a YAML literal, what about this instead? > > YAML{foo: bar} def Y(txt) YAML.load txt end Y %{bla: foo} => {"bla"=>"foo"} OTOH this might scare people who think "... combinator" whenever they see Y. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Never make any mistaeks. -- Anonymous, in a mail discussion about to a kernel bug report