{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/583","labels_url":"https://api.github.com/repos/facebook/immutable-js/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/facebook/immutable-js/issues/583/comments","events_url":"https://api.github.com/repos/facebook/immutable-js/issues/583/events","html_url":"https://github.com/facebook/immutable-js/issues/583","id":100508186,"number":583,"title":"Making immutable function closures","user":{"login":"jannavarro","id":4499051,"avatar_url":"https://avatars.githubusercontent.com/u/4499051?v=3","gravatar_id":"","url":"https://api.github.com/users/jannavarro","html_url":"https://github.com/jannavarro","followers_url":"https://api.github.com/users/jannavarro/followers","following_url":"https://api.github.com/users/jannavarro/following{/other_user}","gists_url":"https://api.github.com/users/jannavarro/gists{/gist_id}","starred_url":"https://api.github.com/users/jannavarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannavarro/subscriptions","organizations_url":"https://api.github.com/users/jannavarro/orgs","repos_url":"https://api.github.com/users/jannavarro/repos","events_url":"https://api.github.com/users/jannavarro/events{/privacy}","received_events_url":"https://api.github.com/users/jannavarro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T09:57:45Z","updated_at":"2015-08-12T09:57:45Z","closed_at":null,"body":"To create an immutable it needs an object. e.g: var map1 = Immutable.Map({a:1, b:2, c:3});\r\n\r\nWith ES6 comes classes that when transpiled becomes function closures. Is there current or upcoming support to create a way to pass in a class and make its properties immutable? e.g: \r\n\r\nlet rm = new RoleManager;\r\nvar immutableRoleM = Immutable.makeImmutable(rm);\r\n\r\nA use of this that I can think of is similar to what clojure immutable global app state. From this [blog](http://blog.circleci.com/local-state-global-concerns/): \"all components store their state in a global data structure.\" "}}