Factoristas-

 I've been studying the great economy John B. achieved in his
neat revision of my recently submitted
spotlight.factor<https://github.com/cwalston/spotlight.factor>code,
especially WRT structuring format strings passed to sprintf, e.g.:

: attr== ( item-name attr-name -- string )
    swap "%s == '%s'" sprintf ;

 The construct "%s", which does the heavy lifting, isn't explicitly
illustrated in the doc file format specs for printf, for lc string formats.
In hindsight I can deduce that "%s" is implicit in the "%P.Ds" format,
when you don't want padding or require max digits. It might be worthwhile,
for fledgelings, to stick a line in the docs illustrating that using bare
"%s"
will do in such cases. I totally missed that possibility. Doh!

 Kudos to John; I'm thrilled with the result, overall.

Best,
~cw

-- 
*~ Memento Amori*
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to