3 ms·
Ruby does have % too for quite a while. As in '%s won $%i' % ['herbst', 5000]
by herbst 9y ago
Ruby does have % too for quite a while. As in
'%s won $%i' % ['herbst', 5000]
- int_19h 9y agoYou actually want both of these. The reason why explicitly indexed placeholder syntax is still important, even if you have interpolation, is because the order in which the arguments are referenced may change when the string is localized.