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

You could do some real evil stuff with reflection though, such as messing with Java's IntegerCache: http://codegolf.stackexchange.com/a/28818


Ruby:

    irb(main):009:0> class Fixnum; def + other; 42; end; end
    => nil
    irb(main):010:0> 4 + 5
    => 42




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

Search: