Discussion

Ask HN: The importance of heredoc

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.
1 points stcredzero 17 years ago 7 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton