Chris Angelico wrote:
So do I need to be able to "call a function as if it
were a procedure", or is there a stark difference between the two
types of callable?

Well, Pascal makes a stark distinction between them -- it's
a compile-time error to call a procedure as though it were
a function or vice versa in Pascal -- and it didn't seem to
cause any great problems.

So it's at least possible to write useful code under such
circumstances, and it might even help to catch certain
classes of errors. But the ability to ignore return values
can be useful as well. Most languages since have decided
not to make the distinction, and don't seem to have
suffered noticeably as a result.

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

Reply via email to