Updates:
Status: FixToInclude
Comment #2 on issue 7020 by
[hidden email]: Named String
Interpolation for String>>#format:
http://code.google.com/p/pharo/issues/detail?id=7020Name:
SLICE-Issue-7020-Named-String-Interpolation-for-String-format-SvenVanCaekenberghe.1
Author: SvenVanCaekenberghe
Time: 21 November 2012, 9:44:02.272 am
UUID: 16394104-0508-430f-bdc2-6206c891494c
Ancestors:
Dependencies: CollectionsTests-SvenVanCaekenberghe.579,
Collections-Strings-SvenVanCaekenberghe.234
Extend String>>format: to accept named (key) indexes on top of the
subscript (integer) ones so that both the following now work:
'Today is {1}.' format: {Date today}.
'Today is {date}.' format: (Dictionary with: #date->Date today).
Clean up the implementation to modern standards (removed 2 private String
methods, #evaluateExpression:parameters: and #getEnclosedExpressionFrom:
and rely on Exceptions).
Added extra unit tests to StringTest.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker