[haXe] Why haxe do not support that?
Ralf Bokelberg
ralf.bokelberg at gmail.com
Mon Sep 11 12:39:18 CEST 2006
Hi Nicolas
A lot of things in haxe are best practices converted to compiler
checked constructs. I wonder, why you go the other way round with
exceptions/errors. Though we can create a common base class on our
own, i have the feeling, that a compiler forced base class fits better
with the general approach of haxe.
Cheers,
Ralf.
On 9/11/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
> > It is great. Thanks:)
> > But I want to know why haxe do not have some error hierarchy. I think
> > it is convenience to have some built-in error class. then user can
> > distinguish which error occured easily instead of just a string like
> > 'fatal error occured'
>
> This is not because there is no Error baseclass that you don't know what
> happenned. For example :
>
> throw "Not enough memory";
>
> Is pretty self-explaining.
>
> Nicolas
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
--
Ralf Bokelberg <ralf.bokelberg at gmail.com>
Flex & Flash Consultant based in Cologne/Germany
More information about the Haxe
mailing list