Notes from C++ static analysis
Paulo Pinto
pjmlp at progtools.org
Thu Jun 27 00:33:12 PDT 2013
On Wednesday, 26 June 2013 at 22:56:41 UTC, Walter Bright wrote:
> On 6/26/2013 2:47 PM, Paulo Pinto wrote:
>> I have been an adept of iostreams since day one and never
>> understood why people
>> complain so much about them or the operator<< and operator>>
>> for that matter.
>
> Even if you can get past the execrable look of it, it suffers
> from at least 3 terrible technical problems:
>
> 1. not thread safe
>
> 2. not exception safe
>
> 3. having to acquire/release mutexes for every << operation
> rather than once for the whole expression
Thanks for listing those issues they actually represent areas
where I never used iostreams directly.
1. our iostream usage tends to be done from a central place
2. I am yet to write portable C++ code with exceptions turned on
3. wasn't aware of it
More information about the Digitalmars-d
mailing list