Possible "throws" syntax

2012-08-11 Thread Marco Leise
Am Sun, 12 Aug 2012 05:02:25 +0200 schrieb Marco Leise : > ---D->> > > /** > * Receives a response from the server. > * > * Some explanation of what > * the function does in detail. > * > * Params: > *response = receives the whole response > * Throws: > *UnexpectedResponseExce

Re: Possible "throws" syntax

2012-08-15 Thread Dmitry Olshansky
On 12-Aug-12 07:28, Marco Leise wrote: Am Sun, 12 Aug 2012 05:02:25 +0200 schrieb Marco Leise : ---D->> /** * Receives a response from the server. * * Some explanation of what * the function does in detail. * * Params: *response = receives the whole response * Throws: *

Re: Possible "throws" syntax

2012-08-17 Thread Marco Leise
Am Wed, 15 Aug 2012 23:29:43 +0400 schrieb Dmitry Olshansky : > When I see code like this I have one single thought - error codes! > > Indeed that's what is used in this example, with Exceptions only being > convenient (and separate) transport for error codes. So the net progress > is creating

Re: Possible "throws" syntax

2012-08-17 Thread Dmitry Olshansky
On 17-Aug-12 11:47, Marco Leise wrote: [snip] Including but not limited to the time when foo's author adds more types to his "throws list". Unlike checked exceptions it won't break build just for the fuck of it *and* it will still work correctly. In fact if we manage to come up with proper reas

Re: Possible "throws" syntax

2012-08-17 Thread Marco Leise
Am Fri, 17 Aug 2012 12:48:01 +0400 schrieb Dmitry Olshansky : > […] > Something like that. With ifs you query important properties about error > that allow you to pick the best recover decision. The whole propose of > flags is to unify only _important_ items for the _decision_ process and > hide

Re: Possible "throws" syntax

2012-08-17 Thread Dmitry Olshansky
On 17-Aug-12 14:10, Marco Leise wrote: Am Fri, 17 Aug 2012 12:48:01 +0400 schrieb Dmitry Olshansky : […] Something like that. With ifs you query important properties about error that allow you to pick the best recover decision. The whole propose of flags is to unify only _important_ items for th

Re: Possible "throws" syntax

2012-08-19 Thread foobar
On Wednesday, 15 August 2012 at 19:29:44 UTC, Dmitry Olshansky wrote: On 12-Aug-12 07:28, Marco Leise wrote: Am Sun, 12 Aug 2012 05:02:25 +0200 schrieb Marco Leise : ---D->> /** * Receives a response from the server. * * Some explanation of what * the function does in detail. * * Params

Re: Possible "throws" syntax

2012-08-19 Thread Dmitry Olshansky
On 19-Aug-12 11:04, foobar wrote: On Wednesday, 15 August 2012 at 19:29:44 UTC, Dmitry Olshansky wrote: On 12-Aug-12 07:28, Marco Leise wrote: Am Sun, 12 Aug 2012 05:02:25 +0200 schrieb Marco Leise : ---D->> /** * Receives a response from the server. * * Some explanation of what * the fu