Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12756
| References | (1 earlier) <mailman.743.1315075846.27778.python-list@python.org> <tiobj8-sng.ln1@chris.zbmc.eu> <mailman.761.1315161191.27778.python-list@python.org> <j40kd8$du4$1@dont-email.me> <4e640cb7$0$30003$c3e8da3$5496439d@news.astraweb.com> |
|---|---|
| Date | 2011-09-05 10:59 +1000 |
| Subject | Re: Functions vs OOP |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.764.1315184402.27778.python-list@python.org> (permalink) |
On Mon, Sep 5, 2011 at 9:41 AM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > http://docs.python.org/dev/howto/functional.html > > What about the entire "Introduction" section, which starts with this > statement? > > "This section explains the basic concept of functional programming" > > If you would like to suggest improvements, please do so. Well, it does invite you to skip that whole section :) Since you asked, though, the copyeditor in me does want to suggest one small tweak: Second paragraph after the bullet list ends "Avoiding side effects means not using data structures that get updated as a program runs; every function’s output must only depend on its input." - I'd word it as "must depend only on". Pretty immaterial, but the formal style prefers correctness. Somewhat more significant: Under "Modularity", may be of value to add a paragraph about parallelism. With functional code, it's easy for an interpreter to ascertain which functions depend on each other (because one's return value is another's input). Independent functions can be run in parallel without affecting the result; the interpreter can therefore divide a complex task across multiple CPUs without any work from the programmer. Like I said, it's just "since you asked". :) The above paragraph is hereby given out as public domain, use it (edit it, whatever) under whatever license the Python docs require. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Functions vs OOP William Gill <noreply@domain.invalid> - 2011-09-03 12:15 -0400
Re: Functions vs OOP Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-04 02:25 +1000
Re: Functions vs OOP Terry Reedy <tjreedy@udel.edu> - 2011-09-03 15:15 -0400
Re: Functions vs OOP William Gill <noreply@domain.invalid> - 2011-09-03 17:34 -0400
Re: Functions vs OOP Ben Finney <ben+python@benfinney.id.au> - 2011-09-04 07:39 +1000
Re: Functions vs OOP William Gill <nospam@domain.invalid> - 2011-09-03 17:58 -0400
Re: Functions vs OOP Terry Reedy <tjreedy@udel.edu> - 2011-09-03 21:51 -0400
Re: Functions vs OOP William Gill <noreply@domain.invalid> - 2011-09-03 22:18 -0400
Re: Functions vs OOP William Gill <nospam@domain.invalid> - 2011-09-05 14:58 -0400
Re: Functions vs OOP MRAB <python@mrabarnett.plus.com> - 2011-09-03 17:29 +0100
Re: Functions vs OOP William Gill <noreply@domain.invalid> - 2011-09-03 17:09 -0400
Re: Functions vs OOP Ian Kelly <ian.g.kelly@gmail.com> - 2011-09-03 12:50 -0600
Re: Functions vs OOP William Gill <noreply@domain.invalid> - 2011-09-03 17:13 -0400
Re: Functions vs OOP tinnews@isbd.co.uk - 2011-09-04 09:13 +0100
Re: Functions vs OOP Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-04 21:18 +1000
Re: Functions vs OOP Terry Reedy <tjreedy@udel.edu> - 2011-09-04 14:32 -0400
Re: Functions vs OOP William Gill <nospam@domain.invalid> - 2011-09-04 15:43 -0400
Re: Functions vs OOP Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-05 09:41 +1000
Re: Functions vs OOP William Gill <nospam@domain.invalid> - 2011-09-04 20:46 -0400
Re: Functions vs OOP Chris Angelico <rosuav@gmail.com> - 2011-09-05 10:59 +1000
Re: Functions vs OOP rusi <rustompmody@gmail.com> - 2011-09-04 06:13 -0700
Re: Functions vs OOP William Gill <noreply@domain.invalid> - 2011-09-05 13:45 -0400
Re: Functions vs OOP Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-09-05 21:04 +0200
Re: Functions vs OOP William Gill <nospam@domain.invalid> - 2011-09-05 20:30 -0400
Re: Functions vs OOP Terry Reedy <tjreedy@udel.edu> - 2011-09-05 18:55 -0400
csiph-web