Statements as expressions [was Re: Undefined behaviour in C]

Paul Rubin no.email at nospam.invalid
Mon Mar 28 14:27:31 EDT 2016


BartC <bc at freeuk.com> writes:
> With more recent ones I've dropped that model, so that statements and
> expressions are different, and that is strictly enforced. This makes
> implementation simpler, and detects lots more errors.

You should try Haskell, where there are only expressions, but the ones
that perform actions can be separated from the other ones through the
type system, so using one in the wrong place raises a compile time type
error.



More information about the Python-list mailing list