January 22
On 1/22/2021 7:08 AM, John Colvin wrote:
> On Friday, 22 January 2021 at 09:28:47 UTC, Walter Bright wrote:
>> On 1/21/2021 3:12 AM, John Colvin wrote:
>>> It's worth saying that we do depend on being able to catch Errors at Symmetry*, our situation is a little unusual though.
>>>
>>> * "we are happy when a thrown Error is caught in some limited circumstances" not "our program is incorrect if any particular thrown Error is not caught"
>>
>> I recommend considering replacing it with Exception.
> 
> The purpose is to catch unexpected Errors from any source, including accidental bounds violations, code deep in 3rd party dependencies etc. It doesn't matter if we miss some, but it's nice to catch them when we can.

You should be able to register your own handler to intercept those before an Error gets thrown.
January 23
On Saturday, 23 January 2021 at 05:45:13 UTC, Walter Bright wrote:
> You should be able to register your own handler to intercept those before an Error gets thrown.

True, but there are no more guarantee that things are in order at this point in time than there are when catching the error down the road.

I don't have a solution.
January 26
On Saturday, 23 January 2021 at 05:45:13 UTC, Walter Bright wrote:
> On 1/22/2021 7:08 AM, John Colvin wrote:
>> On Friday, 22 January 2021 at 09:28:47 UTC, Walter Bright wrote:
>>> On 1/21/2021 3:12 AM, John Colvin wrote:
>>>> [...]
>>>
>>> I recommend considering replacing it with Exception.
>> 
>> The purpose is to catch unexpected Errors from any source, including accidental bounds violations, code deep in 3rd party dependencies etc. It doesn't matter if we miss some, but it's nice to catch them when we can.
>
> You should be able to register your own handler to intercept those before an Error gets thrown.

For a bunch of cases, yes. For actual "throw new Error" there aren't many options.
January 26
On Tuesday, 26 January 2021 at 09:49:01 UTC, John Colvin wrote:
> For a bunch of cases, yes. For actual "throw new Error" there aren't many options.

Would a compiler config option be helpful?



Next ›   Last »
1 2 3 4 5