List of Phobos functions that allocate memory?
Adam D. Ruppe
destructionator at gmail.com
Thu Feb 6 19:27:47 PST 2014
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...
fun fact, my little toy scripting language supports
var a = try foo();; // if foo throws, a == the exception object
but it's a toy scripting language, ugly crap is allowed there :)
More information about the Digitalmars-d
mailing list