News for hackers. Stuff that matters.
Re:PHP introduces "goto" by ars on Tuesday June 09, 2009 @09:29PM (#650365)
Haskell is a functional language, PHP is not. So it's not a valid comparison.

Every time I ask people what's wrong with PHP they give me answers from functional languages. I've yet to see anyone give me an example from a procedural language.

Re:PHP introduces "goto" by jamesbritt on Wednesday June 10, 2009 @01:05AM (#650601)
"PHP is not any worse or better than any other language."

Haskell fits as "any other".

"Haskell is a functional language, PHP is not. So it's not a valid comparison."

So, PHP is not any worse or better than any other language that's just like PHP?

Re:PHP introduces "goto" by psygnisfive on Wednesday June 10, 2009 @12:40AM (#650586)
You're right. Let's compare to a more adequate language. Like Ruby.

  def inc_all(i, xs)
    xs.map { |x| x + i }
  end