{"action":"created","issue":{"url":"https://api.github.com/repos/larcenists/larceny/issues/680","labels_url":"https://api.github.com/repos/larcenists/larceny/issues/680/labels{/name}","comments_url":"https://api.github.com/repos/larcenists/larceny/issues/680/comments","events_url":"https://api.github.com/repos/larcenists/larceny/issues/680/events","html_url":"https://github.com/larcenists/larceny/issues/680","id":17309976,"number":680,"title":"Feeding wrong number of arguments to define-values produces non-ideal error message","user":{"login":"larceny-trac-import","id":4951000,"avatar_url":"https://avatars.githubusercontent.com/u/4951000?v=3","gravatar_id":"","url":"https://api.github.com/users/larceny-trac-import","html_url":"https://github.com/larceny-trac-import","followers_url":"https://api.github.com/users/larceny-trac-import/followers","following_url":"https://api.github.com/users/larceny-trac-import/following{/other_user}","gists_url":"https://api.github.com/users/larceny-trac-import/gists{/gist_id}","starred_url":"https://api.github.com/users/larceny-trac-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larceny-trac-import/subscriptions","organizations_url":"https://api.github.com/users/larceny-trac-import/orgs","repos_url":"https://api.github.com/users/larceny-trac-import/repos","events_url":"https://api.github.com/users/larceny-trac-import/events{/privacy}","received_events_url":"https://api.github.com/users/larceny-trac-import/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/larcenists/larceny/labels/C%3A+library+%28core%29","name":"C: library (core)","color":"0000aa"},{"url":"https://api.github.com/repos/larcenists/larceny/labels/P%3A+trivial","name":"P: trivial","color":"aa8888"},{"url":"https://api.github.com/repos/larcenists/larceny/labels/T%3A+enhancement","name":"T: enhancement","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-07-28T09:44:22Z","updated_at":"2015-01-19T00:10:03Z","closed_at":null,"body":"**Reported by: pnkfelix  on Wed Feb 20 06:09:59 2013**\n```\r\n(define-values (a b) (values 'a))\r\n\r\nError: Wrong number of arguments to procedure #<PROCEDURE>,\r\n    which expected 2 but got 1\r\nEntering debugger; type \"?\" for help.\r\ndebug> \r\n```\r\n\r\nThere are a number of ways that we could improve upon this.\r\nFor example, the ```define-values``` macro could expand into a named procedure with \"define-values\" somewhere in its identifier, so that the error report would include that in the procedure name.\r\n\r\n(A much broader/more invasive change would be to have the continuation carry information about the minimum number of values it requires; but I suspect that won't happen in Larceny.)"},"comment":{"url":"https://api.github.com/repos/larcenists/larceny/issues/comments/70433495","html_url":"https://github.com/larcenists/larceny/issues/680#issuecomment-70433495","issue_url":"https://api.github.com/repos/larcenists/larceny/issues/680","id":70433495,"user":{"login":"WillClinger","id":4834511,"avatar_url":"https://avatars.githubusercontent.com/u/4834511?v=3","gravatar_id":"","url":"https://api.github.com/users/WillClinger","html_url":"https://github.com/WillClinger","followers_url":"https://api.github.com/users/WillClinger/followers","following_url":"https://api.github.com/users/WillClinger/following{/other_user}","gists_url":"https://api.github.com/users/WillClinger/gists{/gist_id}","starred_url":"https://api.github.com/users/WillClinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillClinger/subscriptions","organizations_url":"https://api.github.com/users/WillClinger/orgs","repos_url":"https://api.github.com/users/WillClinger/repos","events_url":"https://api.github.com/users/WillClinger/events{/privacy}","received_events_url":"https://api.github.com/users/WillClinger/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T00:10:03Z","updated_at":"2015-01-19T00:10:03Z","body":"The R7RS definition of `define-values` will produce a worse error message."}}