{"action":"created","issue":{"url":"https://api.github.com/repos/gracelang/language/issues/50","repository_url":"https://api.github.com/repos/gracelang/language","labels_url":"https://api.github.com/repos/gracelang/language/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/gracelang/language/issues/50/comments","events_url":"https://api.github.com/repos/gracelang/language/issues/50/events","html_url":"https://github.com/gracelang/language/issues/50","id":133883342,"number":50,"title":"what is the interface of platform/mem aka PrimitiveArray","user":{"login":"kjx","id":1917107,"avatar_url":"https://avatars.githubusercontent.com/u/1917107?v=3","gravatar_id":"","url":"https://api.github.com/users/kjx","html_url":"https://github.com/kjx","followers_url":"https://api.github.com/users/kjx/followers","following_url":"https://api.github.com/users/kjx/following{/other_user}","gists_url":"https://api.github.com/users/kjx/gists{/gist_id}","starred_url":"https://api.github.com/users/kjx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjx/subscriptions","organizations_url":"https://api.github.com/users/kjx/orgs","repos_url":"https://api.github.com/users/kjx/repos","events_url":"https://api.github.com/users/kjx/events{/privacy}","received_events_url":"https://api.github.com/users/kjx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T04:35:59Z","updated_at":"2016-02-16T21:42:30Z","closed_at":null,"body":"Presumably this needs to confirm to #49 \r\nHow do we decide what the interface should be.\r\nIn particular, should it really have **sort**?\r\nI note neither implementation has hash.\r\n\r\n### spec \r\n  doesn't really say\r\n\r\n### amg \r\n        add_Method(PrimitiveArray, \"at\", &PrimitiveArray_index);\r\n        add_Method(PrimitiveArray, \"[]\", &PrimitiveArray_index);\r\n        add_Method(PrimitiveArray, \"at()put\", &PrimitiveArray_indexAssign);\r\n        add_Method(PrimitiveArray, \"[]:=\", &PrimitiveArray_indexAssign);\r\n        add_Method(PrimitiveArray, \"asString\", &PrimitiveArray_asString);\r\n        add_Method(PrimitiveArray, \"asDebugString\", &PrimitiveArray_asDebugString);\r\n        add_Method(PrimitiveArray, \"::\", &Object_bind);\r\n        add_Method(PrimitiveArray, \"size\", &BuiltinList_length);\r\n        add_Method(PrimitiveArray, \"==\", &Object_Equals);\r\n        add_Method(PrimitiveArray, \"!=\", &Object_NotEquals);\r\n        add_Method(PrimitiveArray, \"sortInitial()by\", &PrimitiveArray_sort);\r\n \r\n### Kernan\r\n            AddMethod(\"[]\", at);\r\n            AddMethod(\"at\", at);\r\n            AddMethod(\"[] :=\", atPut);\r\n            AddMethod(\"at put\", atPut);\r\n            AddMethod(\"size\", new DelegateMethod0(mSize));"},"comment":{"url":"https://api.github.com/repos/gracelang/language/issues/comments/184885382","html_url":"https://github.com/gracelang/language/issues/50#issuecomment-184885382","issue_url":"https://api.github.com/repos/gracelang/language/issues/50","id":184885382,"user":{"login":"KimBruce","id":1810938,"avatar_url":"https://avatars.githubusercontent.com/u/1810938?v=3","gravatar_id":"","url":"https://api.github.com/users/KimBruce","html_url":"https://github.com/KimBruce","followers_url":"https://api.github.com/users/KimBruce/followers","following_url":"https://api.github.com/users/KimBruce/following{/other_user}","gists_url":"https://api.github.com/users/KimBruce/gists{/gist_id}","starred_url":"https://api.github.com/users/KimBruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimBruce/subscriptions","organizations_url":"https://api.github.com/users/KimBruce/orgs","repos_url":"https://api.github.com/users/KimBruce/repos","events_url":"https://api.github.com/users/KimBruce/events{/privacy}","received_events_url":"https://api.github.com/users/KimBruce/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T21:42:30Z","updated_at":"2016-02-16T21:42:30Z","body":"I don't see any need for sort.  My intro students will never see PrimitiveArray, only List.  I see we need it (e.g., in data structures to show what is going on under the hood), but it should not contain anything substantive."}}