{"comment":{"url":"https://api.github.com/repos/micropython/micropython/comments/17271116","html_url":"https://github.com/micropython/micropython/commit/31300b5144a2f9ffe934a6760fa347d9284c9591#commitcomment-17271116","id":17271116,"user":{"login":"dpgeorge","id":6187689,"avatar_url":"https://avatars.githubusercontent.com/u/6187689?v=3","gravatar_id":"","url":"https://api.github.com/users/dpgeorge","html_url":"https://github.com/dpgeorge","followers_url":"https://api.github.com/users/dpgeorge/followers","following_url":"https://api.github.com/users/dpgeorge/following{/other_user}","gists_url":"https://api.github.com/users/dpgeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/dpgeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpgeorge/subscriptions","organizations_url":"https://api.github.com/users/dpgeorge/orgs","repos_url":"https://api.github.com/users/dpgeorge/repos","events_url":"https://api.github.com/users/dpgeorge/events{/privacy}","received_events_url":"https://api.github.com/users/dpgeorge/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"31300b5144a2f9ffe934a6760fa347d9284c9591","created_at":"2016-04-27T13:03:35Z","updated_at":"2016-04-27T13:03:35Z","body":"I agree with this approach (ifdefs are already a bit out of hand and we hardly use them!).\r\n\r\nWhat about, for example, ticks_cpu().  Should that:\r\n- use ifdef?\r\n- be included in all ports with a note that some ports may return 0?\r\n- with a note that some ports do not define it?\r\n- have a sentence at the end of the description stating availability?  eg \"Availability: pyboard, wipy.\"  That's how CPython handles it."}}