{"action":"created","issue":{"url":"https://api.github.com/repos/triska/the-power-of-prolog/issues/4","repository_url":"https://api.github.com/repos/triska/the-power-of-prolog","labels_url":"https://api.github.com/repos/triska/the-power-of-prolog/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/triska/the-power-of-prolog/issues/4/comments","events_url":"https://api.github.com/repos/triska/the-power-of-prolog/issues/4/events","html_url":"https://github.com/triska/the-power-of-prolog/issues/4","id":302995060,"number":4,"title":"Having to include the CLP(FD) library is not explicit enough","user":{"login":"JCumin","id":13984616,"avatar_url":"https://avatars1.githubusercontent.com/u/13984616?v=4","gravatar_id":"","url":"https://api.github.com/users/JCumin","html_url":"https://github.com/JCumin","followers_url":"https://api.github.com/users/JCumin/followers","following_url":"https://api.github.com/users/JCumin/following{/other_user}","gists_url":"https://api.github.com/users/JCumin/gists{/gist_id}","starred_url":"https://api.github.com/users/JCumin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCumin/subscriptions","organizations_url":"https://api.github.com/users/JCumin/orgs","repos_url":"https://api.github.com/users/JCumin/repos","events_url":"https://api.github.com/users/JCumin/events{/privacy}","received_events_url":"https://api.github.com/users/JCumin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-07T07:45:07Z","updated_at":"2018-03-08T16:34:23Z","closed_at":"2018-03-08T16:34:23Z","author_association":"CONTRIBUTOR","body":"Take for example the second chapter \"Facets of Prolog\". In this chapter, there is the following code example:\r\n\r\n```\r\nlist_length([], 0).\r\nlist_length([_|Ls], N) :-\r\n        N #> 0,\r\n        N #= N0 + 1,\r\n        list_length(Ls, N0).\r\n```\r\n\r\nIf the reader does not bother reading the \"Integer Arithmetic\" chapter first (which is linked in the previous sentence, but I assume newcomers would not follow those links right away), then the reader has no idea that they have to add `:- use_module(library(clpfd)).` with most distributions.\r\n\r\nThis lead people in [the Prolog learning chatroom](https://chat.stackexchange.com/rooms/74093/prolog) to [not understand why a simple first Prolog example did not work](https://chat.stackexchange.com/transcript/message/43253765#43253765), or even to [conclude that the code exposed in The Power of Prolog is a not a standard dialect of Prolog](https://chat.stackexchange.com/transcript/message/43254500#43254500)."},"comment":{"url":"https://api.github.com/repos/triska/the-power-of-prolog/issues/comments/371542888","html_url":"https://github.com/triska/the-power-of-prolog/issues/4#issuecomment-371542888","issue_url":"https://api.github.com/repos/triska/the-power-of-prolog/issues/4","id":371542888,"user":{"login":"JCumin","id":13984616,"avatar_url":"https://avatars1.githubusercontent.com/u/13984616?v=4","gravatar_id":"","url":"https://api.github.com/users/JCumin","html_url":"https://github.com/JCumin","followers_url":"https://api.github.com/users/JCumin/followers","following_url":"https://api.github.com/users/JCumin/following{/other_user}","gists_url":"https://api.github.com/users/JCumin/gists{/gist_id}","starred_url":"https://api.github.com/users/JCumin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCumin/subscriptions","organizations_url":"https://api.github.com/users/JCumin/orgs","repos_url":"https://api.github.com/users/JCumin/repos","events_url":"https://api.github.com/users/JCumin/events{/privacy}","received_events_url":"https://api.github.com/users/JCumin/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T16:34:23Z","updated_at":"2018-03-08T16:34:23Z","author_association":"CONTRIBUTOR","body":"Simple but most likely effective change, thank you."}}
{"actor":{"display_login":"JCumin"}}