Exception handling

Good day!

Returning to the conversation on the interpreter speed I wish to say again
that Ruby should not be compared to C++ on tasks like sorting, image
processing etc. Take Smalltalk. It was developed as very slow language but
it lives for now.
Because its goal is to control low-level processes, but not to implement
them. Thus Ruby should not race with others but should extend its control
features. One of those is exception handling. I like the mechanismus in
Smalltalk. The faeature I would like to see in Ruby is ability to proceed
from the next line or repeat the operator throwing the exception.

“Aleksei Guzev” aleksei.guzev@bigfoot.com schrieb im Newsbeitrag
news:atjqle$14urn4$1@ID-167200.news.dfncis.de

Returning to the conversation on the interpreter speed I wish to say
again
that Ruby should not be compared to C++ on tasks like sorting, image
processing etc. Take Smalltalk. It was developed as very slow language
but
it lives for now.
Because its goal is to control low-level processes, but not to implement
them. Thus Ruby should not race with others but should extend its control
features. One of those is exception handling. I like the mechanismus in
Smalltalk. The faeature I would like to see in Ruby is ability to proceed
from the next line or repeat the operator throwing the exception.

what about retry and rescue? dosn’t these fulfil your needs?

robert

what about retry and rescue? dosn't these fulfil your needs?

Smalltalk can have resumable exception.

See [ruby-talk:18099]

Guy Decoux

“Robert Klemme” bob.news@gmx.net wrote in message
news:atklea$em5$1@ID-52924.news.dfncis.de

“Aleksei Guzev” aleksei.guzev@bigfoot.com schrieb im Newsbeitrag
news:atjqle$14urn4$1@ID-167200.news.dfncis.de

Returning to the conversation on the interpreter speed I wish to say
again
that Ruby should not be compared to C++ on tasks like sorting, image
processing etc. Take Smalltalk. It was developed as very slow language
but
it lives for now.
Because its goal is to control low-level processes, but not to implement
them. Thus Ruby should not race with others but should extend its
control
features. One of those is exception handling. I like the mechanismus in
Smalltalk. The faeature I would like to see in Ruby is ability to
proceed
from the next line or repeat the operator throwing the exception.

what about retry and rescue? dosn’t these fulfil your needs?

robert

These don’t resume to the operator raising the exception.

“ts” decoux@moulon.inra.fr wrote in message
news:200212161408.gBGE8Un25318@moulon.inra.fr

what about retry and rescue? dosn’t these fulfil your needs?

Smalltalk can have resumable exception.

See [ruby-talk:18099]

Guy Decoux

Thanks. But in [ruby-talk:18102] matz said that “It requires deep core
rewrite.”
I mention this again, because I hope smth has been changed sinse that time
;)))

“Aleksei Guzev” aleksei.guzev@bigfoot.com schrieb im Newsbeitrag
news:atknrr$17j0$1@ID-167200.news.dfncis.de

what about retry and rescue? dosn’t these fulfil your needs?

robert

These don’t resume to the operator raising the exception.

hm, but what if you modularize methods more? this is a good idea anyway
and then you can retry on a per mehod basis.

regards

robert

Hi,

···

In message “Re: Exception handling” on 02/12/16, “Aleksei Guzev” aleksei.guzev@bigfoot.com writes:

Thanks. But in [ruby-talk:18102] matz said that “It requires deep core
rewrite.”
I mention this again, because I hope smth has been changed sinse that time ;)))

I’m sorry, no, unless you save continuations when you raise exceptions.
I tried sometimes, but resumable exception (by continuation) is not
useful as much as I expected at the first thought.

						matz.