User talk:Markjreed: Difference between revisions
Content added Content deleted
(Reply to Keithpinson) |
mNo edit summary |
||
Line 5: | Line 5: | ||
"%03d".format(v) is the better way to go. Works in older version of Scala. Doesn't invoke the gag reflex. |
"%03d".format(v) is the better way to go. Works in older version of Scala. Doesn't invoke the gag reflex. |
||
:(Context: edited [[Middle_three_digits|this page]) I don't recall gagging; for one thing, I'm a Perl guy. :) I figured it was some newfangled feature, but my Google-fu failed me, and the standard install on ubuntu and os x homebrew still gets me 2.9. So as you say, I went with the form that works on older Scala. Thanks for the explanation! [[User:Markjreed|Markjreed]] 02:27, 6 February 2013 (UTC) |
:(Context: edited [[Middle_three_digits|this page]]) I don't recall gagging; for one thing, I'm a Perl guy. :) I figured it was some newfangled feature, but my Google-fu failed me, and the standard install on ubuntu and os x homebrew still gets me 2.9. So as you say, I went with the form that works on older Scala. Thanks for the explanation! [[User:Markjreed|Markjreed]] 02:27, 6 February 2013 (UTC) |
Revision as of 02:27, 6 February 2013
what the heck was that 'f"${v}%03d"' thing?
Didn't mean to make you gag. It's string interpolation. Works in Scala 2.10.
"%03d".format(v) is the better way to go. Works in older version of Scala. Doesn't invoke the gag reflex.
- (Context: edited this page) I don't recall gagging; for one thing, I'm a Perl guy. :) I figured it was some newfangled feature, but my Google-fu failed me, and the standard install on ubuntu and os x homebrew still gets me 2.9. So as you say, I went with the form that works on older Scala. Thanks for the explanation! Markjreed 02:27, 6 February 2013 (UTC)