Bug 24550 – formattedWrite should support string interpolation

Status
NEW
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-05-14T12:10:00Z
Last change time
2024-12-01T16:42:32Z
Keywords
pull
Assigned to
No Owner
Creator
FeepingCreature
Moved to GitHub: phobos#10550 →

Comments

Comment #0 by default_357-line — 2024-05-14T12:10:00Z
auto sink = appender!(char[]); const world = "World"; // This works sink.formattedWrite("Hello %s", world); // This does not. sink.formattedWrite(i"Hello $(world)");
Comment #1 by dlang-bot — 2024-08-03T03:15:31Z
@RubyTheRoobster updated dlang/phobos pull request #9041 "Fix Issue 24550 - - formattedWrite should support string interpolation " fixing this issue: - Fix Bugzilla Issue 24550 https://github.com/dlang/phobos/pull/9041
Comment #2 by snarwin+bugzilla — 2024-11-20T20:37:16Z
Should we really be calling this "formatted" write when it doesn't use a format string? Seems like it would make more sense with a different name; for example: sink.write(i"Hello $(world)");
Comment #3 by robert.schadek — 2024-12-01T16:42:32Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10550 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB