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


Groups > comp.lang.python > #21755

RE: Why not use juxtaposition to indicate function application

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ramit.prasad@jpmorgan.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; 'completeness': 0.05; 'width': 0.05; 'tends': 0.07; 'python': 0.08; 'readable': 0.09; 'whitespaces': 0.09; 'subject:application': 0.15; 'to:name:python- list@python.org': 0.15; '712': 0.16; 'currencies': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'f(a,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'securities,': 0.16; 'subject:function': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'versus': 0.16; 'subject:not': 0.19; 'header:In-Reply-To:1': 0.22; 'subject:use': 0.24; 'function': 0.27; 'variable': 0.28; 'received:169': 0.28; 'received:169.254': 0.28; '(and': 0.30; 'far,': 0.30; 'received:155': 0.30; 'received:159': 0.30; 'accuracy': 0.32; "i've": 0.32; 'supposed': 0.32; 'filter': 0.34; 'rather': 0.34; 'probably': 0.35; 'to:addr :python-list': 0.35; 'phone:': 0.35; 'but': 0.37; 'charset:us- ascii': 0.37; 'think': 0.38; 'should': 0.38; 'being': 0.40; 'to:addr:python.org': 0.40; 'more': 0.61; 'subject': 0.61; 'offers': 0.62; 'strange': 0.68; 'information,': 0.69; 'legal': 0.72; 'url:email': 0.72; 'bank': 0.75; 'sale': 0.75; 'investment': 0.77; 'purchase': 0.78; 'received:169.254.8': 0.84; 'subject:skip:j 10': 0.84; 'thing).': 0.84; 'fonts': 0.91
X-DKIM OpenDKIM Filter v2.1.3 sz1.jpmchase.com q2GGDq3F027562
DKIM-Signature v=1; a=rsa-sha256; c=simple/simple; d=jpmorgan.com; s=smtpout; t=1331914432; bh=Pl3XJD9quPEkXS3cZYMLu/bj6qHAiG0N2vuaRqqb9Hg=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=DU4hZx57f6/rqnX29LbjybEo0o/uSQibj5yNFnLV/ryjJl2ddfGSxrTSgbqP0vS5D SIWmdGdAL9ivzaUU0neWBbCHkCkh2bbdJREaD6A4tUy5aEqXCea46NMWSpfup3RyUZ khn8O6VtnZ+9sa4LDlsghWttmfCzWANkXOKVmhGQ=
From "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
To "python-list@python.org" <python-list@python.org>
Subject RE: Why not use juxtaposition to indicate function application
Thread-Topic Why not use juxtaposition to indicate function application
Thread-Index AQHNA3bJE+PSIn9m302Y5bPM7vfU9JZtV+IA//+/eSA=
Date Fri, 16 Mar 2012 16:13:38 +0000
References <mailman.722.1331901933.3037.python-list@python.org> <42cac695-761e-4cdb-aa3b-7c82789b76f9@h20g2000yqd.googlegroups.com> <4f636391$0$1382$4fafbaef@reader1.news.tin.it>
In-Reply-To <4f636391$0$1382$4fafbaef@reader1.news.tin.it>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.67.79.38]
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-DLP-FWD Yes
Content-Type text/plain; charset="us-ascii"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.724.1331914436.3037.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331914436 news.xs4all.nl 6868 [2001:888:2000:d::a6]:54946
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21755

Show key headers only | View raw


> >> I confess i've indulged in Haskell and found
> >>      f a
> >> more readable than
> >>      f(a)
> >
> > Hmmm... What about:
> >
> >      f a b
> >
> > versus
> >
> >      f(a(b))
> >
> > or was it supposed to be read as
> >
> >      f(a)(b)
> >
> >
> > or as
> >
> >     f(a, b)
> >
> > ?-)
> 
> That would be
>    f (a b)          # Haskell
>    f(a(b))          # Python

I have not used Haskell so far, but in this case I think I prefer the
'Explicit is better than implicit.'

I would probably always forget if it should be 

f a b 

or

f ( a b )

Not to mention the first line look like text rather than a function call
because my mind tends to filter out whitespaces like that when reading.
I blame variable width fonts (and the mind being a strange thing).


Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

--
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

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


Thread

Why not use juxtaposition to indicate function application Ray Song <emacsray@gmail.com> - 2012-03-16 20:45 +0800
  Re: Why not use juxtaposition to indicate function application "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2012-03-16 06:14 -0700
    Re: Why not use juxtaposition to indicate function application Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-16 17:00 +0100
      RE: Why not use juxtaposition to indicate function application "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-16 16:13 +0000
        Re: Why not use juxtaposition to indicate function application Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-16 17:31 +0100
          Re: Why not use juxtaposition to indicate function application Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-03-16 16:45 +0000
            Re: Why not use juxtaposition to indicate function application Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-16 18:18 +0100
            Re: Why not use juxtaposition to indicate function application Ian Kelly <ian.g.kelly@gmail.com> - 2012-03-16 11:59 -0600
            Re: Why not use juxtaposition to indicate function application Serhiy Storchaka <storchaka@gmail.com> - 2012-03-16 22:57 +0200
            Re: Why not use juxtaposition to indicate function application Chris Rebert <clp2@rebertia.com> - 2012-03-16 14:02 -0700
            Re: Why not use juxtaposition to indicate function application Serhiy Storchaka <storchaka@gmail.com> - 2012-03-17 00:14 +0200
          Re: Why not use juxtaposition to indicate function application Tony the Tiger <tony@tiger.invalid> - 2012-03-16 16:55 -0500
    Re: Why not use juxtaposition to indicate function application Terry Reedy <tjreedy@udel.edu> - 2012-03-17 00:38 -0400
  Re: Why not use juxtaposition to indicate function application "Colin J. Williams" <cjw@ncf.ca> - 2012-03-16 11:06 -0400
  Haskellizing python (was Why not use juxtaposition to indicate function application) rusi <rustompmody@gmail.com> - 2012-03-16 22:26 -0700
  Re: Why not use juxtaposition to indicate function application Larry Hudson <orgnut@yahoo.com> - 2012-03-16 23:39 -0700

csiph-web