Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12788
| Date | 2011-09-05 21:04 +0200 |
|---|---|
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| Subject | Re: Functions vs OOP |
| References | <j3tjov$c30$1@dont-email.me> <d6c071ac-2def-44a1-baa5-a545d2988def@a10g2000prn.googlegroups.com> <j431q1$rrl$1@dont-email.me> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.780.1315249547.27778.python-list@python.org> (permalink) |
William Gill wrote: > > Not to split hairs, but syntactically f(x) is a function in many > programming paradigms. > > As I understand it functional programming places specific requirements > on functions, i.e.referential transparency. So f(x) may or may not be > "functional". > > x.f() is also a function, but it is a member of the object x, is > referred to as a 'method' of x, and uses the syntactical "dot" > notation object"dot"function for identification. > Functional programming is not about writing a programm with functions (google it for more info). This may cause some confusion. Your original post was about functions vs methods, which are identical except some syntax detail. FYI, in python x.f() is equivalent to f(x). In an OOP world one will prefer the x.f() form. JM
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