Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'function,': 0.07; 'argument,': 0.09; 'arguments,': 0.09; 'received:mail- lpp01m010-f46.google.com': 0.09; 'sake': 0.09; 'am,': 0.12; '16,': 0.15; 'subject:application': 0.15; '10:45': 0.16; 'argument)': 0.16; 'parentheses': 0.16; 'sense:': 0.16; 'subject:function': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'arguments': 0.18; 'subject:not': 0.19; '(which': 0.19; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; '+0100,': 0.23; 'subject:use': 0.24; 'cc:2**0': 0.26; 'function': 0.27; 'raise': 0.28; 'message- id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'received:209.85.215.46': 0.32; 'it.': 0.33; 'it?': 0.33; 'fri,': 0.34; 'normally': 0.34; 'steven': 0.34; 'calling': 0.34; 'apply': 0.35; '(for': 0.35; 'regular': 0.35; 'partial': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209.85.215': 0.39; 'received:209': 0.39; 'application': 0.40; 'more': 0.61; 'subject:skip:j 10': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=zGqGeMZd+LLPSsgpR5FDNwI7ZQjyhhKoEv4y2vkCuts=; b=wa+E4aDz3BJBefuMXGVjQ8hR/9TRt3btNhb08BIP4ZXw05xuZEUU9WOv4Blazr+91S YpbdGSQiFfgPssABdBvq9Sc4nsP6ilEvjjqnxyENknwqpv2ukvy+SK9iE8cv7rf1HZeM Sne7dOS9JxezXpdxTDmlK8kRaJ0F6ToiyDQkVO7gycIe7zJy8hlIZhGmr/5PAe2MCnPv MuZw06Qvhhv+OcXagRAloyrUkdO5kuCLaNpvY9y73gcWi60n6tChKqHNkk973peskBCS kXp2ATXoYac8VG2akFLQ2VgcveBpcPUQTQNxo1Lzds2vDBkp8p6Rbmzav8dIMQJeR6LG XQqA== MIME-Version: 1.0 In-Reply-To: <4f636e43$0$29981$c3e8da3$5496439d@news.astraweb.com> References: <42cac695-761e-4cdb-aa3b-7c82789b76f9@h20g2000yqd.googlegroups.com> <4f636391$0$1382$4fafbaef@reader1.news.tin.it> <4f636acb$0$1381$4fafbaef@reader1.news.tin.it> <4f636e43$0$29981$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Fri, 16 Mar 2012 11:59:51 -0600 Subject: Re: Why not use juxtaposition to indicate function application To: "Steven D'Aprano" Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331920825 news.xs4all.nl 6960 [2001:888:2000:d::a6]:34317 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21769 On Fri, Mar 16, 2012 at 10:45 AM, Steven D'Aprano wrote: > On Fri, 16 Mar 2012 17:31:06 +0100, Kiuhnm wrote: > >> You wouldn't, because Haskel's way is more regular and makes a lot of >> sense: parentheses are for grouping and that's it. > > If f is a function which normally takes (for the sake of the argument) > one argument, then f would call the function with no arguments (which may > return a curried function, or may apply default arguments, or perhaps > raise an exception). So how would you refer to the function itself > without calling it? A partial application of f with no arguments is still just f.