News for hackers. Stuff that matters.
Re:Why Ruby? by DanWaterworth on Friday March 22, 2013 @11:56AM (#5423719)
The vector type is always given as an example, but I find the ability to give a type to printf more mind bending.

Just in case that went over your head and to reiterate, that means that:

    printf "Hello %s" 4
would generate a type error, so would:

    printf "Hello %s" "wor" "ld!"
and:

    printf "Hello %s! %s" "world"
but:

    printf "%s %s!" "Hello" "world"
wouldn't.

There are no comments on this comment yet.