{"action":"created","issue":{"url":"https://api.github.com/repos/pandegroup/openmm/issues/1450","repository_url":"https://api.github.com/repos/pandegroup/openmm","labels_url":"https://api.github.com/repos/pandegroup/openmm/issues/1450/labels{/name}","comments_url":"https://api.github.com/repos/pandegroup/openmm/issues/1450/comments","events_url":"https://api.github.com/repos/pandegroup/openmm/issues/1450/events","html_url":"https://github.com/pandegroup/openmm/issues/1450","id":145807876,"number":1450,"title":"Harmonize platform properties","user":{"login":"jchodera","id":3656088,"avatar_url":"https://avatars.githubusercontent.com/u/3656088?v=3","gravatar_id":"","url":"https://api.github.com/users/jchodera","html_url":"https://github.com/jchodera","followers_url":"https://api.github.com/users/jchodera/followers","following_url":"https://api.github.com/users/jchodera/following{/other_user}","gists_url":"https://api.github.com/users/jchodera/gists{/gist_id}","starred_url":"https://api.github.com/users/jchodera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchodera/subscriptions","organizations_url":"https://api.github.com/users/jchodera/orgs","repos_url":"https://api.github.com/users/jchodera/repos","events_url":"https://api.github.com/users/jchodera/events{/privacy}","received_events_url":"https://api.github.com/users/jchodera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pandegroup/openmm/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-04T21:19:05Z","updated_at":"2016-04-21T19:59:03Z","closed_at":null,"body":"We might consider harmonizing how we handle platform properties.\r\n\r\nCurrently, each property has its platform name as a prefix, which requires that any use of properties have a lot of platform-specific code. Not all capabilities are available on all platforms, and using properties that are not available will result in an exception, but exception handling can not be effectively used because of the inconsistencies in property names.\r\n\r\nWhat about\r\n* retain old property names for compatibility but mark them as \"deprecated\"---they might be removed in future\r\n* introduce new property names which are coherent among platforms, and a `setProperty` flag that allows us to ignore exceptions if the property is not available\r\n* introduce an API call that allows us to query if the platform has this property/capability\r\n\r\n* CC #909: Standardize approach for handling precision\r\n"},"comment":{"url":"https://api.github.com/repos/pandegroup/openmm/issues/comments/213091160","html_url":"https://github.com/pandegroup/openmm/issues/1450#issuecomment-213091160","issue_url":"https://api.github.com/repos/pandegroup/openmm/issues/1450","id":213091160,"user":{"login":"peastman","id":4379786,"avatar_url":"https://avatars.githubusercontent.com/u/4379786?v=3","gravatar_id":"","url":"https://api.github.com/users/peastman","html_url":"https://github.com/peastman","followers_url":"https://api.github.com/users/peastman/followers","following_url":"https://api.github.com/users/peastman/following{/other_user}","gists_url":"https://api.github.com/users/peastman/gists{/gist_id}","starred_url":"https://api.github.com/users/peastman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peastman/subscriptions","organizations_url":"https://api.github.com/users/peastman/orgs","repos_url":"https://api.github.com/users/peastman/repos","events_url":"https://api.github.com/users/peastman/events{/privacy}","received_events_url":"https://api.github.com/users/peastman/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T19:59:03Z","updated_at":"2016-04-21T19:59:03Z","body":"I suppose we could just have a hardcoded list of translations for the existing properties.  In some ways I find that uglier, but the effect would be pretty much the same."}}