Not to be off topic, but I am not sure if A berger is trolling this mailing
list or if he just thinks his English is better than what it actually
is.... his posts are usually a hodgepodge of nonsensical material with
pertinent ruby elements mashed in... I'm honestly curious to the thought
process behind his posts.


On Tue, Feb 16, 2016 at 10:37 AM, Robert Klemme <shortcutter / googlemail.com>
wrote:

> On Tue, Feb 16, 2016 at 2:01 PM, A Berger <aberger7890 / gmail.com> wrote:
>
> > I found sg mystical (for me):
> > [3,4].map { |i| " #{'%2i' %i}" }
> > where is this documented, no printf here!
>
> This code is nonsense: two string construction mechanisms are used
> here - that is one too many.  Compare this:
>
> irb(main):001:0> [3,4].map { |i| " #{'%2i' %i}" }
> => ["  3", "  4"]
> irb(main):002:0> [3,4].map { |i| ' %2i' % i }
> => ["  3", "  4"]
> irb(main):003:0> [3,4].map { |i| '%3i' % i }
> => ["  3", "  4"]
>
> Cheers
>
> robert
>
> --
> [guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
> - without end}
> http://blog.rubybestpractices.com/
>
> Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>
(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>