Re: Code Golf
- Posted by SDPringle Dec 21, 2008
- 1352 views
Okay you can bump that down by 7 characters. I read the stackoverflow site and I wasn't surprised that java took two and a half times more characters to write than C. Seeing as you have to write CharacterAt() just to do what you could do with [] in EUPHORIA or C.
If you supply a character to the question mark operator it doesn't put a new line:
object e = command_line(), s = e[3] e = 0 & 0 & e[4] for i = 1 to length(s) do ? e[ match( s[i] & 44, e ) + 2] end for
Shawn Pringle