Re: Named parameters to format?

2015-12-15 Thread Ludovic Courtès
Christopher Allan Webber skribis: > Ludovic Courtès writes: > >> Hi! >> >> ‘format’ is an implementation of the historical Common Lisp (I think?) >> thing. >> >> The Better Approach™ is probably . An >> entirely different but IMO nicer approach (again, real EDSL

Re: Named parameters to format?

2015-12-15 Thread Christopher Allan Webber
Thanks, Nala! :) Nala Ginrut writes: > I don't know if someone wrote this one for format string. But there's > Python3-like string template in Artanis, say: > ((make-string-template "foo ${bar} ${baz}") #:bar "bleh" #:baz "wonk") > I think it does the similar thing. > > If you're interested in it

Re: Named parameters to format?

2015-12-15 Thread Christopher Allan Webber
Ludovic Courtès writes: > Hi! > > ‘format’ is an implementation of the historical Common Lisp (I think?) > thing. > > The Better Approach™ is probably . An > entirely different but IMO nicer approach (again, real EDSL instead of > stringy DSL.) > > Ludo’. I've be

Re: Named parameters to format?

2015-12-15 Thread Christopher Allan Webber
Mark H Weaver writes: > Christopher Allan Webber writes: > >> I've been thinking about what I'm going to do once I hit the need for >> gettext support. I'm not really sure for things that have multiple >> variables in their string. In python land, I'd do something like: >> >> gettext("foo %(b

Re: Named parameters to format?

2015-12-15 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > ‘format’ is an implementation of the historical Common Lisp (I think?) > thing. > > The Better Approach™ is probably . An > entirely different but IMO nicer approach (again, real EDSL instead of > stringy DSL.) For some ti

Re: Named parameters to format?

2015-12-15 Thread Ludovic Courtès
Hi! ‘format’ is an implementation of the historical Common Lisp (I think?) thing. The Better Approach™ is probably . An entirely different but IMO nicer approach (again, real EDSL instead of stringy DSL.) Ludo’.