{"action":"created","issue":{"url":"https://api.github.com/repos/ark-lang/ark/issues/544","labels_url":"https://api.github.com/repos/ark-lang/ark/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/ark-lang/ark/issues/544/comments","events_url":"https://api.github.com/repos/ark-lang/ark/issues/544/events","html_url":"https://github.com/ark-lang/ark/issues/544","id":95939804,"number":544,"title":"Some ideas/questions for the language","user":{"login":"danharbor95","id":4282127,"avatar_url":"https://avatars.githubusercontent.com/u/4282127?v=3","gravatar_id":"","url":"https://api.github.com/users/danharbor95","html_url":"https://github.com/danharbor95","followers_url":"https://api.github.com/users/danharbor95/followers","following_url":"https://api.github.com/users/danharbor95/following{/other_user}","gists_url":"https://api.github.com/users/danharbor95/gists{/gist_id}","starred_url":"https://api.github.com/users/danharbor95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danharbor95/subscriptions","organizations_url":"https://api.github.com/users/danharbor95/orgs","repos_url":"https://api.github.com/users/danharbor95/repos","events_url":"https://api.github.com/users/danharbor95/events{/privacy}","received_events_url":"https://api.github.com/users/danharbor95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-19T18:50:56Z","updated_at":"2015-07-19T19:04:02Z","closed_at":null,"body":"You say you want to improve upon C, are any of the following implemented? If so I think they should be:\r\n\r\n* a standard library for safe arithmetic to avoid overflows/underflows/etc\r\n* will regex be in the standard library?\r\n* will anonymous unions be supported?\r\n* is it possible to match strings in a match statement?"},"comment":{"url":"https://api.github.com/repos/ark-lang/ark/issues/comments/122695622","html_url":"https://github.com/ark-lang/ark/issues/544#issuecomment-122695622","issue_url":"https://api.github.com/repos/ark-lang/ark/issues/544","id":122695622,"user":{"login":"kiljacken","id":209321,"avatar_url":"https://avatars.githubusercontent.com/u/209321?v=3","gravatar_id":"","url":"https://api.github.com/users/kiljacken","html_url":"https://github.com/kiljacken","followers_url":"https://api.github.com/users/kiljacken/followers","following_url":"https://api.github.com/users/kiljacken/following{/other_user}","gists_url":"https://api.github.com/users/kiljacken/gists{/gist_id}","starred_url":"https://api.github.com/users/kiljacken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiljacken/subscriptions","organizations_url":"https://api.github.com/users/kiljacken/orgs","repos_url":"https://api.github.com/users/kiljacken/repos","events_url":"https://api.github.com/users/kiljacken/events{/privacy}","received_events_url":"https://api.github.com/users/kiljacken/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T19:04:02Z","updated_at":"2015-07-19T19:04:02Z","body":"We (will) have proper algebraic enums that you can `match` on for this:\r\n```\r\nenum Option {\r\n    None,\r\n    Some(^void),\r\n}\r\n\r\nx := Some(somePointer);\r\nmatch x {\r\n    None => C::printf(\"nothing found\\n\");\r\n    Some(pointer) => C::printf(\"found pointer: %x\\n\", pointer);\r\n}\r\n```"}}