On Mon, 01 Oct 2012 08:16:13 +0200
Jacob Carlborg <d...@me.com> wrote:

> On 2012-10-01 06:35, Andrej Mitrovic wrote:
> 
> > Is that a bug or a feature? :)
> 
> Actually you can do the same thin in Ruby, at least with strings.
> This is can be kind of nice, no need to create a new exception type.
> But in Ruby the string is wrapped in an instance of RuntimeError, so
> that might not be comparable.
> 
> raise "foo"
> 
> Is the same as:
> 
> raise RuntimeError.new("foo")
> 

Haxe can throw anything, too. I've always found it borderline useless,
and frequently a pain.

Reply via email to