{"issue":{"created_at":"2011-12-12T18:12:14Z","state":"open","updated_at":"2011-12-12T18:20:26Z","comments":2,"user":{"gravatar_id":"c037e51c81ff40b910e63b6f9dab5230","id":166966,"url":"https://api.github.com/users/eegg","avatar_url":"https://secure.gravatar.com/avatar/c037e51c81ff40b910e63b6f9dab5230?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eegg"},"body":"Tasked with generating the following JS from Roy, how would one do it?\r\n\r\n```javascript\r\nvar nullary = function() {\r\n    return 5;\r\n}\r\n```\r\n\r\nBy comparison with the syntax for functions for 1+ arguments, we would write\r\n\r\n    let nullary = 5\r\n\r\nWhich, however, generates\r\n\r\n```javascript\r\nvar nullary = 5;\r\n```","assignee":null,"id":2526275,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":67,"labels":[],"title":"Cannot define nullary function","html_url":"https://github.com/pufuwozu/roy/issues/67","closed_at":null,"url":"https://api.github.com/repos/pufuwozu/roy/issues/67","milestone":null},"action":"created","comment":{"created_at":"2011-12-12T18:20:26Z","updated_at":"2011-12-12T18:20:26Z","user":{"gravatar_id":"c037e51c81ff40b910e63b6f9dab5230","id":166966,"url":"https://api.github.com/users/eegg","avatar_url":"https://secure.gravatar.com/avatar/c037e51c81ff40b910e63b6f9dab5230?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"eegg"},"body":"I would suggest:\r\n\r\n* Make the `let` syntax always generate a function, even nullary.  Introduce a `var` keyword for the current use of `let` with no arguments.\r\n* Allow nullary lambdas simply using the notation `\\ -> ...`.","id":3110048,"url":"https://api.github.com/repos/pufuwozu/roy/issues/comments/3110048"}}