4 ms·
Well, that's the first time I see such convention. And your argument doesn't quite hold water to me. They put the visibility modifier in its own line, not the f
by V-2 11y ago
Well, that's the first time I see such convention. And your argument doesn't quite hold water to me. They put the visibility modifier in its own line, not the function name. It's still next to the return type (or void). So it would still beat your regex. Plus, I'm not exactly sure if any Android devs snap out little regex-based scripts for refactoring or whatnot :) I'm sure it's far from unusual in dynamic languages, but looks like a great YAGNI in this case. I'm not hating it, all I'm saying is it's odd :)
- arfar 11y agoYou're completely right, it's odd. Also I didn't realise that the return type was also on the same line as the function name, in which case, even more odd. I think the idea dates back to early C. I've definitely seen C code with the return type on a separate line.