Why not allow empty code blocks?
Chris Angelico
rosuav at gmail.com
Sat Jul 30 13:15:07 EDT 2016
On Sun, Jul 31, 2016 at 2:58 AM, Rustom Mody <rustompmody at gmail.com> wrote:
>> Where, in any useful production code, is the difference between
>> functions and procedures actually helpful? Or where, in student code,
>> would it be useful to distinguish? I've been teaching Python to
>> students with a variety of backgrounds, and nobody has yet been
>> bothered by this. Not a single one.
>>
>> ChrisA
>
> In English — and all Indo-European¹ languages — there are two moods
> “It is raining” is in declarative mood
> “Come in!” is in imperative mood
>
> Now there is a realm in which they are not distinct
>
> “It is raining!” said Harry Potter to Hermione and it started raining
> “Come in!” said Harry, And the chair walked hoppety-hop into the room
>
> So sure if you want to teach magic to your kids, all power to you.
> Myself, I’ll stick to what I know better than magic — programming
Answer the question, maybe... when *in programming* is this
distinction important?
ChrisA
More information about the Python-list
mailing list