Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66509
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: Can one use Python to learn and even apply Functional Programming? |
| Date | 2014-02-16 16:42 +1100 |
| References | <3fd33e3a-7774-4988-b725-4fed5472ac94@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7038.1392529369.18130.python-list@python.org> (permalink) |
Sam <lightaiyee@gmail.com> writes: > Some have advised me to use Haskell instead because Python is not a > good language for FP. There are some features of functional programming which are not a good fit with Python. By attempting to learn functional programming in Python, you will necessarily compromise your Python code *and* your understanding of functional programming. > I am sort of confused at the moment. Is Python a dysfunctional > programming language to apply FP? Can the more experienced Python > users advise? I think if you want to learn functional programming you should have a good reason for doing so, and you should learn something like Common Lisp or Scheme or another purely-functional language. You will definitely learn a lot about programming that you didn't know before, and be able to think about problems with an expanded mental toolkit. Similarly, I encourage anyone working with databases to learn correct relational database techniques — even though SQL is a deeply-flawed and rather incomplete tool for working with relational databases, nevertheless learning relational theory gives one an expanded mental toolkit for thinking about database design and access when working in SQL. Much of the functional programming toolkit will apply to your Python programming, but you will need to be aware of what tru functional programming is, and then bring that toolkit back to Python. -- \ “If nature has made any one thing less susceptible than all | `\ others of exclusive property, it is the action of the thinking | _o__) power called an idea” —Thomas Jefferson | Ben Finney
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can one use Python to learn and even apply Functional Programming? Sam <lightaiyee@gmail.com> - 2014-02-15 20:45 -0800
Re: Can one use Python to learn and even apply Functional Programming? Chris Angelico <rosuav@gmail.com> - 2014-02-16 16:34 +1100
Re: Can one use Python to learn and even apply Functional Programming? Ben Finney <ben+python@benfinney.id.au> - 2014-02-16 16:42 +1100
Re: Can one use Python to learn and even apply Functional Programming? Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-02-15 22:38 -0800
Re: Can one use Python to learn and even apply Functional Programming? Chris Angelico <rosuav@gmail.com> - 2014-02-16 18:04 +1100
Re: Can one use Python to learn and even apply Functional Programming? Pat Johnson <p.johnson125@gmail.com> - 2014-02-16 00:00 -0800
Re: Can one use Python to learn and even apply Functional Programming? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-16 13:20 +0000
Re: Can one use Python to learn and even apply Functional Programming? Chris Angelico <rosuav@gmail.com> - 2014-02-17 00:28 +1100
Re: Can one use Python to learn and even apply Functional Programming? Terry Reedy <tjreedy@udel.edu> - 2014-02-16 03:40 -0500
Re: Can one use Python to learn and even apply Functional Programming? Rustom Mody <rustompmody@gmail.com> - 2014-02-16 05:52 -0800
Re: Can one use Python to learn and even apply Functional Programming? Ryan <rymg19@gmail.com> - 2014-02-16 09:11 -0600
Re: Can one use Python to learn and even apply Functional Programming? Neil Cerutti <neilc@norwich.edu> - 2014-02-18 16:39 +0000
csiph-web