4 ms·
If only we can get a rosettacode version of this in all languages. I bet trolls will coming out left and right. It would be pure evil.
by kevindeasis 11y ago
If only we can get a rosettacode version of this in all languages. I bet trolls will coming out left and right. It would be pure evil.
- masklinn 11y agoMost languages don't have a purely textual and completely unsafe preprocessor running during the compilation process, so it would be quite hard.
- chedabob 11y agoYou could do some real evil stuff with reflection though, such as messing with Java's IntegerCache: http://codegolf.stackexchange.com/a/28818 http://codegolf.stackexchange.com/a/28818
- vidarh 11y agoRuby: irb(main):009:0> class Fixnum; def + other; 42; end; end => nil irb(main):010:0> 4 + 5 => 42