Hacker News new | past | comments | ask | show | jobs | submit login

Stepping further from Go, this same principle is at play in Clojure, which favors open maps for information.

Curious, know little Clojure but isn't "open objects" a Javascript thing too? What is special about Clojure here?




In the context of that statement, nothing.

I called out Clojure specifically because of the culture around this specific issue and because of the dispatch design of the multimethods that are present in the standard library and widely favored. Nothing stops you from making dispatch tables or simply switching on a key in JavaScript.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: