Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
jimcbrown said...

So, you can test x to see if the slice was successful, or if an error occured.

...

That said, I think this is much uglier than try/catch. dcuny, you can take it from here.

Whether it's ugly or not, it's much more passive, unless there's some equivalent to try / catch blocks that I'm not seeing.

Matt

The "equivalent" is inside the internal routine. So, crash during development, allow with default value in deployment. How would try/catch recover from a bad index? Resume with a default value perhaps?

Spock

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu