|
|
| | Ask HN: The importance of heredoc | |
1 point by stcredzero on June 25, 2009 | hide | past | favorite | 7 comments
|
| | I wish to ask Rubyists and Shell programmers: Does heredoc still have a place? Is it still worth its syntactic weight? I can see how it would be great for one-off scripts producing a bit of text. But I can picture a number of ways to get almost the same effect (readable one-offs producing text) in a scripting language without complicating the syntax. |
|
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
And what's so complicated about the syntax? Even if you have never seen a heredoc before, it's generally very easy to figure out what's going on from context.