Bug 24853 – Skip white space with formattedRead

Status
NEW
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-11-10T15:11:02Z
Last change time
2024-12-01T16:43:12Z
Assigned to
No Owner
Creator
Richard (Rikki) Andrew Cattermole
Moved to GitHub: phobos#10566 →

Comments

Comment #0 by alphaglosined — 2024-11-10T15:11:02Z
Proposal: add a skip whitespace format specifier to formattedRead. The purpose of this is to enable stuff like: https://issues.dlang.org/show_bug.cgi?id=4656 Of note is that white space is a Unicode category, it covers a lot more characters than just space or tab. This came up as a comparison to Nim, which does this automatically. However not skipping white space is intentional on D's side. So to have a format specifier for it would give us both capabilities when needed.
Comment #1 by robert.schadek — 2024-12-01T16:43:12Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10566 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB