Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #66508

Re: Can one use Python to learn and even apply Functional Programming?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'languages.': 0.04; 'subject:Python': 0.06; 'style.': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'language,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it;': 0.16; 'object).': 0.16; 'subject:Programming': 0.16; 'language': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; '[1]': 0.29; "doesn't": 0.30; 'primarily': 0.30; 'message-id:@mail.gmail.com': 0.30; 'enforce': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'subject:one': 0.36; 'subject:?': 0.36; 'starting': 0.37; 'pm,': 0.38; 'anything': 0.39; 'does': 0.39; 'extremely': 0.39; 'functional': 0.39; 'users': 0.40; 'how': 0.40; 'subject:Can': 0.60; 'more': 0.64; 'love': 0.65; 'within': 0.65; 'sam': 0.68; 'smoke': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=2tCwkGUp+6jVGlCtUQQ3Ty1Jw0BBxWu8Ot+trfoxTaY=; b=wYxQA7GSi0QG4Ao8gefcavIHcyo+GLTkFwkleDAAyV6rsN7ZxHjoqm6QOc60kIkKpl JGBepO95xxhIaajv4u21QMNaIyvY6G9e/Qo/3HCMZdd2/zinnCT/bldVcz+gSzlQKHA/ 3xF6O1/hYF9mfKNLrUfACUsDw2tubrnYsfZCUdIzRZ9jCUAEpYoqT+RF/N1fAwR+gVyo JwLodkOXUPhhT1r+XL/404vJJFQnHQplu1QLzBODhfpeMs3TwSVHnGigCOW8u7Gapz9G e4xvZ55bjWC8kId7XEVV0Qh5+SMv9rrSd5UfX/5cdrxewNp+F5rNtFw/v3aQgzBxMdJH 9WCA==
MIME-Version 1.0
X-Received by 10.66.160.225 with SMTP id xn1mr18853522pab.108.1392528849421; Sat, 15 Feb 2014 21:34:09 -0800 (PST)
In-Reply-To <3fd33e3a-7774-4988-b725-4fed5472ac94@googlegroups.com>
References <3fd33e3a-7774-4988-b725-4fed5472ac94@googlegroups.com>
Date Sun, 16 Feb 2014 16:34:09 +1100
Subject Re: Can one use Python to learn and even apply Functional Programming?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7037.1392528858.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392528858 news.xs4all.nl 2857 [2001:888:2000:d::a6]:33348
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:66508

Show key headers only | View raw


On Sun, Feb 16, 2014 at 3:45 PM, Sam <lightaiyee@gmail.com> wrote:
> I would like to learn and try out functional programming (FP). I love Python and would like to use it to try FP. Some have advised me to use Haskell instead because Python is not a good language for FP. I am sort of confused at the moment. Is Python a dysfunctional programming language to apply FP? Can the more experienced Python users advise?
>

Functional programming is a particular style. Python supports some of
that style, but it certainly doesn't enforce it; if you want to learn
how to work within a functional style, you'd do better with a language
that won't let you do anything else.

Python does have a number of extremely handy notations, borrowed from
more functional languages. But it's not a functional language,
primarily. It's what you might call "multi-paradigm" [1], but
primarily imperative and object-oriented (everything's an object).

ChrisA

[1] My buzzword limiter is starting to smoke

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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