20 karma · joined Feb 19, 2013 (13y ago) · 18 submissions
comment 12y ago · link · parent
I still don't understand why you consider having a compiler-enforced restriction on mutation worse than letting readers figure out what was the developer's intent.
In Java, the only "downside" is having to add "final" as a modifier, which is negligible.
In Scala, the alternative is to declare that variable as "var" instead of "val". When would you ever choose var over val if your object isn't supposed to mutate?
comment 12y ago · link · parent
val and final have stronger meanings when your objects are immutable. True immutability makes reasoning far easier than just referential immutability.
comment 12y ago · link · parent
Pattern matching offers mainly correctness and conciseness, maybe the correctness part should have been emphasized more.
comment 12y ago · link · parent
List<T> l = new ArrayList<T>();
is preferred to this: ArrayList<T> l = new ArrayList<T>();
Of course, it would be nice for the compiler to assume the latter if no type is specified on the left side.comment 12y ago · link · parent
Also, Google Glass may be constantly recording in private places usually without CCTV: homes, dinner tables, meetings, etc.
comment 13y ago · link · parent
In any case, the deep-rooted corruption of her administration (and practically all others decades before it) is a symbol of Argentine culture.
comment 13y ago · link · parent
Argentine here, you can buy SIM cards literally everywhere. Vendors will even sell them to you on trains.