On 2020-09-28, Cameron Simpson <c...@cskk.id.au> wrote:
> That said, Stephane: I don't believe in "best practice" as _the_ best 
> practice, but I certainly believe there's "bad practice".

I kind of disagree with that, what I mean that there is no bad practice
to get the work done. There may be bad practice to write a code that you
intend to share or as part of a bigger project. Still, that depends how
you deliver your code.

For example, in Perl I sometime make extensive usage of goto(), through
this is usually considered bad practice I've read several documents who
stated otherwise.

Using goto() may make the code much simpler to understand when you
encounter a lot of error cases in a code.

The try: except: of Python, as I understand it, is never more than a
goto() in disguise (at least, that's the way I use goto() in Perl).

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to