3 ms·
Your first three points are good, but are you seriously suggesting that Java is "more modern" because its method call syntax uses a dot instead of brackets?
by mikeash 13y ago
Your first three points are good, but are you seriously suggesting that Java is "more modern" because its method call syntax uses a dot instead of brackets?
- pjmlp 13y agoYes, because [] was a pre-processor hack back when Objective-C was invented and the compiler was actually a translator to C. A means of gathering the code, dump it into a series of objc_msgsnd, without doing much of real compiler work. There are languages with Smalltalk semantics without forcing me to type @ and [] multiple times per line, a pain in non US keyboards.
- antimagic 13y agoSeriously? And all of those {} that you type in Java-land, they're magically easy to type? Which is of course a red-herring, because neither is enough of a drama to be taken seriously. You deal with it for a day or two and then forget about it.
- mikeash 13y agoWhat kind of code are you writing where you have to type @ multiple times per line?
- pjmlp 13y agoid map = @{ @"my key": @123};
- mikeash 13y agoSurely you're not doing that anywhere close to every line.
- rsynnott 13y agoOf course, in Java, this would look like (at best, using a third party thing): ImmutableMap.builder().put("my key", 123).build(); Which hardly seems neater (especially in a more realistic case where you have more than one entry).
- pjmlp 13y agoThe point was the pain to type @ in keyboards other than US.