Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: are lambdas a way to bring functional programming to java? Date: Mon, 30 Jun 2014 09:09:26 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 30 Jun 2014 16:09:28 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="9358cda03e1e0dfd3c4b757daa608707"; logging-data="10318"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+192K8OZMVFReFI8c33yEohSvLDOKqKOE=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:Qp8r1CzrYazFHMall3sgu3ul3NY= Xref: csiph.com comp.lang.java.programmer:28875 On 6/30/2014 8:50 AM, Roedy Green wrote: > On Sat, 28 Jun 2014 12:11:43 +0200, Joerg Meier > wrote, quoted or indirectly quoted someone who said : > >> There is no speed advantage to lamdas. > > Would it be a reasonable thing to say that a lambda is just a terser > way to implement an instance of a one-use anonymous class that has a > single method? > I think lambdas have some additional restrictions over anonymous classes. You could say that one can think of them that way as a kind of introductory description. But you probably should try to explain the differences too.