diff options
author | Dominik Gruntz <dominik.gruntz@fhnw.ch> | 2012-03-28 16:48:41 +0200 |
---|---|---|
committer | Dominik Gruntz <dominik.gruntz@fhnw.ch> | 2012-03-28 16:48:41 +0200 |
commit | fdbca65fd1d50582f336e6ebed3466d6073f6f52 (patch) | |
tree | 7b862f0598a7be085a98103125111551aba6815f /test/review | |
parent | 017f48e00b863ecfc6a39c16c89a6ccb1dcde13d (diff) | |
download | scala-fdbca65fd1d50582f336e6ebed3466d6073f6f52.tar.gz scala-fdbca65fd1d50582f336e6ebed3466d6073f6f52.tar.bz2 scala-fdbca65fd1d50582f336e6ebed3466d6073f6f52.zip |
SIP-11 String Interpolation Simplification
Changed StringContext.f which implements the formatted
string interpolator.
Any '%' not in formatting position is left in the resulting string literally.
However, instead of adding %s format holders and extending the args with "%"
expressions, these '%' are replaced by '%%'. The formatter then converts '%%'
(percent formatter) to the literal '%' (\u0025). This also simplifies the spec.
The interpolation tests still pass.
Diffstat (limited to 'test/review')
0 files changed, 0 insertions, 0 deletions