@hidekiBut why
@r000t @hideki why? Because FOR loops are FUN
@hideki Unfortunately, JVM is pretty good at optimizing stuff like that. Here’s a more cursed version:
private static int stringSize(String s) { try { return 1 + stringSize(s.substring(1)); } catch (StringIndexOutOfBoundsException e) { return 0; } }
Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.
@hideki
But why