News for hackers. Stuff that matters.
Re:Which Programming Languages Are Functional? by typon on Wednesday December 30, 2015 @11:01AM (#10812552)
Because you can write person.getName() like this:

def getName():

. . this.setName('foo')

. . return this.name

There's nothing in principle preventing you from doing that in the "functional" approach but if your data is immutable then you can't do it.

Re:Which Programming Languages Are Functional? by Someone on Wednesday December 30, 2015 @03:09PM (#10814043)

  def getName(person):
    person.setName('foo')
    return person.name
The problem, from a functional viewpoint, isn't the implicit argument, it is the fact that you can write setName.
Re:Which Programming Languages Are Functional? by typon on Wednesday December 30, 2015 @06:57PM (#10815234)
Really? I thought implicit arguments were a strict no-no in functional programming.
Re:Which Programming Languages Are Functional? by Someone on Thursday December 31, 2015 @09:28PM (#10820872)
Implicit arguments are still arguments. It is just syntactic sugar, and I think syntax changes cannot change a functional language into a non-functional one.