List of Phobos functions that allocate memory?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Feb 7 08:27:35 PST 2014
On 2/6/14, 7:27 PM, Adam D. Ruppe wrote:
> On Friday, 7 February 2014 at 03:14:45 UTC, Sean Kelly wrote:
>> On Thursday, 6 February 2014 at 22:20:38 UTC, Dicebot wrote:
>>> UTFException if str is not well-formed.
>>
>> unbelievable abomination of a function design.
>
> Yeah, that is absurd. It is a bad, bad sign when almost every time you
> use a function, you write
>
> bool ok = true;
> try validate(s); catch(UTFException) ok = false;
> if(!ok) {}
>
> yet that's how i use validate...
Add a bugzilla and let's define isValid that returns bool!
Andrei
More information about the Digitalmars-d
mailing list