4 ms·
How about hashmaps, something like records and other constructs for building large, long lived applications. I'd kill for hashmaps, some sort of records and st
by spitfire 13y ago
How about hashmaps, something like records and other constructs for building large, long lived applications.
I'd kill for hashmaps, some sort of records and strong typing in Mathematica.
- trurl42 13y agoHere are your hashmaps: https://reference.wolfram.com/language/guide/Associations.html https://reference.wolfram.com/language/guide/Associations.ht...
- spitfire 13y agoAwesome. Is this a new thing? I can't find it in the Mathematica 9 documentation. So now there's just strong types and something like records left for me for general purpose development.
- trurl42 13y agoYep, they are marked as new here: https://reference.wolfram.com/language/ref/Association.html https://reference.wolfram.com/language/ref/Association.html
- statusgraph 13y agoThey've existed in a significantly more powerful form as DownValues since Mathematica's release.
- tokipin 13y agowhat's wrong with just using obj["a"] = 1; obj["b"] = 2; Print[obj["a"]] or obj = { "a" -> 1, "b" -> 2 }; Print["a" /. obj] ?
- taliesinb 13y agoBecause those are really poor substitutes for Associations, though one can make do.