Re:Ritchie language: power of C and convenience of a high-le...
by Veedrac on Monday December 07, 2015 @07:08PM
(#10693818)
I don't like the benchmark grid given.
It's not hard to use fewer characters than Python if you add superfluous parentheses and don't use any of its higher-level features. Rewriting the Python code to be roughly idiomatic shaves off a good 100 characters, even without noticeably changing the algorithm, and that's even with adding some newlines and the indentation cost that entails.
And, IMHO, saving bytes by not having a #! or by using "1" over "True", or even "->" over "return, doesn't impress me much.
It's not hard to use fewer characters than Python if you add superfluous parentheses and don't use any of its higher-level features. Rewriting the Python code to be roughly idiomatic shaves off a good 100 characters, even without noticeably changing the algorithm, and that's even with adding some newlines and the indentation cost that entails.
And, IMHO, saving bytes by not having a #! or by using "1" over "True", or even "->" over "return, doesn't impress me much.