Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pretending you are binding values instead of assignment means you can pretend to achieve the goal in Perl.

But when you drop the pretenses, you're still doing assignment. (Though otherwise you've perfectly duplicated the pattern.)



I say I say I say...

  use strict; use warnings; use signatures;

  sub ( $builder ) {
	return sub ( $n ) {
        return $builder->($builder)->($n);
    };
  }->(
	sub ( $recurse ) {
		return sub ( $n ) {
            if (0 == $n) {
                return 1;
            } else {
				return $n * $recurse->($recurse)->($n - 1);
        	}
        };
    }
  )->(5);


Cute. But I wrote the email under discussion in 2005, and the first version of signatures was not released until 2008.

I still think that my email was accurate as of 2005.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: