You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2019. It is now read-only.
Not 100% sure this is a good idea, but here we go.
The natural way to use maps in Clojure is to use keywords for the keys. In Python, the natural way is to use strings for keys. When writing Python code that works with Clojure code via edn, it becomes tedious to make dicts with Keywords as keys.
So, perhaps it's worth adding a convenience class which is a dict where all of the keys are keywords, but can be accessed & updated using string syntax, but are stored internally as keywords.
These examples are meant to be illustrative, not prescriptive.
Not 100% sure this is a good idea, but here we go.
The natural way to use maps in Clojure is to use keywords for the keys. In Python, the natural way is to use strings for keys. When writing Python code that works with Clojure code via edn, it becomes tedious to make dicts with Keywords as keys.
So, perhaps it's worth adding a convenience class which is a dict where all of the keys are keywords, but can be accessed & updated using string syntax, but are stored internally as keywords.
These examples are meant to be illustrative, not prescriptive.
And also,
The text was updated successfully, but these errors were encountered: