Re: [ljc] How to think as "functional language programer"

From: Jim C.
Sent on: Wednesday, October 2, 2013 8:02 PM
I disagree Michael. FP is about is based on constructing programs with using pure functions and pure functions do not change state.
On 2 Oct 2013, at 13:58, Michael Klishin <[address removed]> wrote:

> On oct 2, 2013, at 2:43 p.m., Martijn Verburg <[address removed]> wrote:
> 
>> This mimics one common aspect of pure FP in that you never change state, e.g. 2 + 4 = 6 - When you add 2 to 4, you're not changing the value of either 2 or 4, you're applying a function (of sorts) and creating a new value 6.
> 
> Martijn,
> 
> Sorry to nitpick but FP is not about "not changing state". It's about changing
> state in a *predictable manner*, and one way to do that is by not modifying values but
> produce new ones instead.
> 
> MK
> 
> 
> 
> 
> 
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
> http://www.meetup...­
> This message was sent by Michael Klishin ([address removed]) from LJC - London Java Community.
> To learn more about Michael Klishin, visit his/her member profile: http://www.meetup...­
> Set my mailing list to email me
> 
> As they are sent
> http://www.meetup...­
> 
> In one daily email
> http://www.meetup...­
> 
> Don't send me mailing list messages
> http://www.meetup...­
> Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]
> 

Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference, in collaboration with the LJC 12/13 Jun 14

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • Hazelcast

    Hazelcast is the leader in operating in-memory computing.

  • Packt Publishing

    A publishing company specializing on specific technologies and solutions

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy