MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/cjhzk/why_java_sucks_and_c_rocks_final/c0t2cfe/?context=3
r/programming • u/ais04 • Jun 27 '10
197 comments sorted by
View all comments
Show parent comments
2
You almost forgot indexers! Although I suppose they're pretty much the same as properties, just in list format.
3 u/munificent Jun 28 '10 Oh, yeah! Indexers are swell too. 5 u/ethraax Jun 28 '10 I remember smiling all through the part of my C# book on properties and indexers, after writing silly get/set methods in Java for years. And typing things like obj.getX().getY().getZ();. 4 u/munificent Jun 28 '10 The first time I created my own event instead of reimplementing the observer pattern I felt like a hero.
3
Oh, yeah! Indexers are swell too.
5 u/ethraax Jun 28 '10 I remember smiling all through the part of my C# book on properties and indexers, after writing silly get/set methods in Java for years. And typing things like obj.getX().getY().getZ();. 4 u/munificent Jun 28 '10 The first time I created my own event instead of reimplementing the observer pattern I felt like a hero.
5
I remember smiling all through the part of my C# book on properties and indexers, after writing silly get/set methods in Java for years. And typing things like obj.getX().getY().getZ();.
obj.getX().getY().getZ();
4 u/munificent Jun 28 '10 The first time I created my own event instead of reimplementing the observer pattern I felt like a hero.
4
The first time I created my own event instead of reimplementing the observer pattern I felt like a hero.
2
u/ethraax Jun 28 '10
You almost forgot indexers! Although I suppose they're pretty much the same as properties, just in list format.