summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDominik Gruntz <dominik.gruntz@fhnw.ch>2012-03-28 16:48:41 +0200
committerDominik Gruntz <dominik.gruntz@fhnw.ch>2012-03-28 16:48:41 +0200
commitfdbca65fd1d50582f336e6ebed3466d6073f6f52 (patch)
tree7b862f0598a7be085a98103125111551aba6815f /test
parent017f48e00b863ecfc6a39c16c89a6ccb1dcde13d (diff)
downloadscala-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')
0 files changed, 0 insertions, 0 deletions