Better HN
topnewbestaskshowjobs
Log inSign up

FrederikNS

4 karma · joined Oct 11, 2013 (13y ago) · 2 submissions

[ my public key: https://keybase.io/frederikns; my proof: https://keybase.io/frederikns/sigs/2RbOQv8FChGdfm-xpbdUMPWm6F3sLYffF4sl7wuDOiA ]
Submissions

comment 9y ago · link · parent

Most semi-primitive types in python is immutable, yes (int, float, char, str, and DateTime), but all of the collections are mutable (List, Dict, Set).

I'm sure there are immutable versions of those same data structures hidden somewhere in the standard library, but I haven't looked.

I did stumble upon pyrsistent (https://github.com/tobgu/pyrsistent) a while ago which does provide proper immutable (and persistent) data structures for python.

comment 13y ago · link · parent

Scala enables you to keep most of the Java ecosystem (API, docs, cross-platform, and swing is even nicer in scala), and you can do `people.map { p => (p.name, p.address) }`, granted that the IDEs have to get a plugin installed before they are as helpful, but both Eclipse and IntelliJ has awesome scala plugins.