Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7578
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
| Newsgroups | comp.lang.python |
| Subject | Re: Function declarations ? |
| Date | Tue, 14 Jun 2011 13:18:18 +1200 |
| Lines | 20 |
| Message-ID | <95nr6tF92qU1@mid.individual.net> (permalink) |
| References | <slrniuv00f.8s9.cheney@atc5.vermine.org> <e7913881-3028-4370-b4f5-7a7b17b04be0@h7g2000yqa.googlegroups.com> <slrniva5en.8s9.cheney@atc5.vermine.org> <4df62578$0$30002$c3e8da3$5496439d@news.astraweb.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net eYOoZ2eA6JwdDNlrZqui9wET/ppxfTc3cd5Gyqv2uYPAMHAtq0 |
| Cancel-Lock | sha1:ryfEGck+JZD8RcKqXDL7j4LloZc= |
| User-Agent | Mozilla Thunderbird 1.0.5 (Macintosh/20050711) |
| X-Accept-Language | en-us, en |
| In-Reply-To | <4df62578$0$30002$c3e8da3$5496439d@news.astraweb.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:7578 |
Show key headers only | View raw
Steven D'Aprano wrote: > "Hoisting" in computing refers to the idea of "lifting" variables or code > outside of one block into another. I'm not sure it's the right term for what's happening here, though. Nothing is being lifted to a higher level -- the functions remain at the same level they were written at. > Here's another model: Pascal. Because Pascal does type checking at > compile time, it will reject the function ham() and raise a compiler > error, It's more that Pascal is designed to make single-pass compilation easy. It's possible to support out-of-order declarations with compile-time type checking using two passes; Pyrex does this, for example. -- Greg
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Function declarations ? Andre Majorel <cheney@halliburton.com> - 2011-06-08 13:58 +0000
Re: Function declarations ? Calvin Spealman <ironfroggy@gmail.com> - 2011-06-08 10:06 -0400
Re: Function declarations ? "D'Arcy J.M. Cain" <darcy@druid.net> - 2011-06-08 10:27 -0400
Re: Function declarations ? Asen Bozhilov <asen.bozhilov@gmail.com> - 2011-06-10 15:46 -0700
Re: Function declarations ? Andre Majorel <cheney@halliburton.com> - 2011-06-12 19:38 +0000
Re: Function declarations ? Tim Roberts <timr@probo.com> - 2011-06-12 21:27 -0700
Re: Function declarations ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-06-14 14:03 +1200
Re: Function declarations ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-13 14:58 +0000
Re: Function declarations ? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-06-14 13:18 +1200
Re: Function declarations ? John Nagle <nagle@animats.com> - 2011-06-13 17:19 -0700
csiph-web