Re: Try-catch and try-finally
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Try-catch and try-finally
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2016年5月31日 21:58:43 +0200
2016年05月31日 18:29 GMT+02:00 Soni L. <fakedme@gmail.com>:
>
>> The only reason why you should ever need to catch exceptions is to print
>> error messages, or to protect your program from crashing when doing
>> something dangerous (e.g. calling a external library), especially in Lua,
>> where errors are generally strings not objects.
>>
> You'll hate Python, then.
I am an ex-Pythonista who admired its compactness, orthogonality
and coherence, but was appalled by its profuseness and dependence
on whitespace. Lua to me combined Python's strengths while avoiding
its defects.