Path: csiph.com!news.fcku.it!peer04.fr7!news.highwinds-media.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Why not allow empty code blocks? Date: Sun, 31 Jul 2016 03:15:07 +1000 Lines: 29 Message-ID: References: <5792cd34$0$1587$c3e8da3$5496439d@news.astraweb.com> <87vazwppxx.fsf@elektro.pacujo.net> <579B1ABB.1070500@rece.vub.ac.be> <579c2095$0$22142$c3e8da3$5496439d@news.astraweb.com> <579cbded$0$1605$c3e8da3$5496439d@news.astraweb.com> <758a1961-00bc-4b1c-834b-a7deca94d029@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de i+DY7M/yS0CvhLFP8/3+Zw2vaFHz/yMtF2oK1zBZLl3A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:code': 0.07; 'cc:addr:python-list': 0.09; 'subject:Why': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.10; 'subject:not': 0.11; '2016': 0.16; 'distinct': 0.16; 'distinction': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'magic': 0.16; 'potter': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:allow': 0.16; 'wrote:': 0.16; 'stick': 0.18; 'student': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '31,': 0.22; 'programming': 0.22; 'am,': 0.23; 'code,': 0.23; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'room': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'useful': 0.33; 'chair': 0.33; 'harry': 0.33; 'languages': 0.34; 'received:google.com': 0.35; 'question,': 0.35; 'there': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'difference': 0.38; 'sure': 0.39; 'your': 0.60; 'you.': 0.64; 'between': 0.65; 'bothered': 0.66; 'kids,': 0.66; 'production': 0.67; 'teaching': 0.69; 'teach': 0.70; 'jul': 0.72; 'power': 0.72; 'chrisa': 0.84; 'i\xe2\x80\x99ll': 0.84; 'mood': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-transfer-encoding; bh=9SCP8rBnsN5unkjw/zxEch0eJksGvTSHyxDyhhlzcpY=; b=UeIIbA6zHPcidJ6eMKt3Uba93oWIvtgTcy+dLxv+5Gf6hLNRpZwp4I7wlS0cGEB9kK cIho50H4SnUJhGBArzaMncsCyqYpObOOkffDODyMzsa+dmurNOxTf6NvDkqesWz5YH9Y TKv/+fEBfkjrIqXkkusYNHDTC13EV5MR3UWg6IFZ98XuTldJkwb2YF7qqt/Al1Lpcgn/ F54qAueNRblXA+tH0g/HskjV4PyMXxvZM1u1xX+5e8NZzs+ZkUYkRU6h8NrsNynV6YFS W/yQiE3rM/Y5zVaXbl4oYhVbRvR7eMmhsfEQmA6rd7z2z4DAUSsMkoX5mFVFQaAB7NVz 05VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc:content-transfer-encoding; bh=9SCP8rBnsN5unkjw/zxEch0eJksGvTSHyxDyhhlzcpY=; b=WeUtyc7COEDDTkiJiF1lU+1uA7cM4++87Q2d63o3VlB58sS7EswN6wEXu+jhIm/nSx RjiDMUsZSTfZmfgmLE+Q9uZoj309bOwHVRIwFCquJEaQH2+C6aNIEt5NX9ULOw/nwHSZ drtlBkHWlB9stVXvEy8foZ43XAw470tFCaHTVHSFxLOm4qU6W1zbb8aHQf16Amosae1j kQhJaeeqk0HUaRP3rWnQekJkZNP5RDsCF2XQgNLH0OaOayVFooZCGw3oC6QZkblUph6h 9G3HlyjtMfHH9M19TtqLrwC1MjY9zdJ+qlY4Z2Lh8lJL8ak7fmE7xWLoXN/Ah8Yu0izA qFwA== X-Gm-Message-State: AEkoouvD95SxK8BQRrJ28rti7s9mqsGf0VKtKmdA0t7VNWB86DrC271m0/CPo57qTpORP5ADad2vzLiN+b0cng== X-Received: by 10.28.50.199 with SMTP id y190mr6178099wmy.61.1469898908508; Sat, 30 Jul 2016 10:15:08 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5792cd34$0$1587$c3e8da3$5496439d@news.astraweb.com> <87vazwppxx.fsf@elektro.pacujo.net> <579B1ABB.1070500@rece.vub.ac.be> <579c2095$0$22142$c3e8da3$5496439d@news.astraweb.com> <579cbded$0$1605$c3e8da3$5496439d@news.astraweb.com> <758a1961-00bc-4b1c-834b-a7deca94d029@googlegroups.com> X-Received-Bytes: 7384 X-Received-Body-CRC: 1399399970 Xref: csiph.com comp.lang.python:112092 On Sun, Jul 31, 2016 at 2:58 AM, Rustom Mody 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 =E2=80=94 and all Indo-European=C2=B9 languages =E2=80=94 ther= e are two moods > =E2=80=9CIt is raining=E2=80=9D is in declarative mood > =E2=80=9CCome in!=E2=80=9D is in imperative mood > > Now there is a realm in which they are not distinct > > =E2=80=9CIt is raining!=E2=80=9D said Harry Potter to Hermione and it sta= rted raining > =E2=80=9CCome in!=E2=80=9D said Harry, And the chair walked hoppety-hop i= nto the room > > So sure if you want to teach magic to your kids, all power to you. > Myself, I=E2=80=99ll stick to what I know better than magic =E2=80=94 pro= gramming Answer the question, maybe... when *in programming* is this distinction important? ChrisA