{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/2089","labels_url":"https://api.github.com/repos/manastech/crystal/issues/2089/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/2089/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/2089/events","html_url":"https://github.com/manastech/crystal/issues/2089","id":130078629,"number":2089,"title":"Allow to call methods on heredoc literals like Ruby does ","user":{"login":"stugol","id":1113153,"avatar_url":"https://avatars.githubusercontent.com/u/1113153?v=3","gravatar_id":"","url":"https://api.github.com/users/stugol","html_url":"https://github.com/stugol","followers_url":"https://api.github.com/users/stugol/followers","following_url":"https://api.github.com/users/stugol/following{/other_user}","gists_url":"https://api.github.com/users/stugol/gists{/gist_id}","starred_url":"https://api.github.com/users/stugol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stugol/subscriptions","organizations_url":"https://api.github.com/users/stugol/orgs","repos_url":"https://api.github.com/users/stugol/repos","events_url":"https://api.github.com/users/stugol/events{/privacy}","received_events_url":"https://api.github.com/users/stugol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/manastech/crystal/labels/compiler","name":"compiler","color":"fef2c0"},{"url":"https://api.github.com/repos/manastech/crystal/labels/draft","name":"draft","color":"00B8B8"},{"url":"https://api.github.com/repos/manastech/crystal/labels/RFC","name":"RFC","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-31T04:40:24Z","updated_at":"2016-02-01T18:25:00Z","closed_at":"2016-01-31T21:01:57Z","body":"A heredoc in Ruby can be used like this:\r\n```cr \r\nputs <<-END.downcase\r\nSOME TEXT\r\nEND\r\n```\r\nA heredoc in Crystal cannot. This should be changed."},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/178110006","html_url":"https://github.com/manastech/crystal/issues/2089#issuecomment-178110006","issue_url":"https://api.github.com/repos/manastech/crystal/issues/2089","id":178110006,"user":{"login":"stugol","id":1113153,"avatar_url":"https://avatars.githubusercontent.com/u/1113153?v=3","gravatar_id":"","url":"https://api.github.com/users/stugol","html_url":"https://github.com/stugol","followers_url":"https://api.github.com/users/stugol/followers","following_url":"https://api.github.com/users/stugol/following{/other_user}","gists_url":"https://api.github.com/users/stugol/gists{/gist_id}","starred_url":"https://api.github.com/users/stugol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stugol/subscriptions","organizations_url":"https://api.github.com/users/stugol/orgs","repos_url":"https://api.github.com/users/stugol/repos","events_url":"https://api.github.com/users/stugol/events{/privacy}","received_events_url":"https://api.github.com/users/stugol/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T18:25:00Z","updated_at":"2016-02-01T18:25:00Z","body":"The whole point of a heredoc is to _avoid_ having to wrap it all in parens and split calls over lines. If you're going to do that, just remove heredocs from the language completely, and use `%{ ... }` instead.\r\n\r\nHeredocs are useful. They provide a clear and uncluttered way to embed arbitrary paragraphs of text into a code file; but it becomes far less useful when you have to wrap it in parens and line breaks."}}