Re:Curious lack of sprintf scaling
by alar44 on Friday February 25, 2022 @07:57PM
(#30474323)
That's likely the use case for 99% of people who zip things though or play audio. Your corner case is exactly what simple libraries should avoid.
[ Parent
| on HN ]
Re:Curious lack of sprintf scaling
by pie_flavor on Friday February 25, 2022 @09:16PM
(#30474731)
The only thing they're going to do is open it as an ifstream. Zero value is gained over taking an istream instead; initializing it is one bit of extra code for the user, in exchange for being able to pull in data from anywhere. Embedding it in the binary might be rare, but how about stdin? Or for that matter the Internet?