{"action":"closed","issue":{"url":"https://api.github.com/repos/jacques-server/jlib/issues/3","labels_url":"https://api.github.com/repos/jacques-server/jlib/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jacques-server/jlib/issues/3/comments","events_url":"https://api.github.com/repos/jacques-server/jlib/issues/3/events","html_url":"https://github.com/jacques-server/jlib/issues/3","id":104653588,"number":3,"title":"考虑取消自定义的类型名","user":{"login":"wiiiky","id":4215141,"avatar_url":"https://avatars.githubusercontent.com/u/4215141?v=3","gravatar_id":"","url":"https://api.github.com/users/wiiiky","html_url":"https://github.com/wiiiky","followers_url":"https://api.github.com/users/wiiiky/followers","following_url":"https://api.github.com/users/wiiiky/following{/other_user}","gists_url":"https://api.github.com/users/wiiiky/gists{/gist_id}","starred_url":"https://api.github.com/users/wiiiky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiiiky/subscriptions","organizations_url":"https://api.github.com/users/wiiiky/orgs","repos_url":"https://api.github.com/users/wiiiky/repos","events_url":"https://api.github.com/users/wiiiky/events{/privacy}","received_events_url":"https://api.github.com/users/wiiiky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jacques-server/jlib/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"wiiiky","id":4215141,"avatar_url":"https://avatars.githubusercontent.com/u/4215141?v=3","gravatar_id":"","url":"https://api.github.com/users/wiiiky","html_url":"https://github.com/wiiiky","followers_url":"https://api.github.com/users/wiiiky/followers","following_url":"https://api.github.com/users/wiiiky/following{/other_user}","gists_url":"https://api.github.com/users/wiiiky/gists{/gist_id}","starred_url":"https://api.github.com/users/wiiiky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiiiky/subscriptions","organizations_url":"https://api.github.com/users/wiiiky/orgs","repos_url":"https://api.github.com/users/wiiiky/repos","events_url":"https://api.github.com/users/wiiiky/events{/privacy}","received_events_url":"https://api.github.com/users/wiiiky/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-03T09:18:06Z","updated_at":"2015-09-04T02:19:31Z","closed_at":"2015-09-04T02:19:31Z","body":"当时学glib，也用了大量类似jchar、jint这样的类型定义。\r\n现在想想好像完全没有必要，甚至是累赘了。\r\n\r\nglib使用这样的类型定义，我认为有两个原因，一是glib本身是一个巨大的框架，包含很多东西，可以完全用glib提供的库实现程序（主要是GUI程序），因此，引入这些类型定义，可以让整个程序看上去非常一致。\r\n二是glib是跨平台的，这些类型定义有助于他们隐藏平台的细节。\r\n\r\n但对于jacques来说，其实上述的两个原因都不成立，一方面jlib也不会大到那种程度，另一方面我非常明确不会做跨平台的移植。\r\n\r\n因此我觉得可以考虑去掉这些多余的类型定义，重新使用标准类型。"}}