Hacker News new | past | comments | ask | show | jobs | submit login

heredocs are great. I use them all the time for metaprogramming. I don't see them going out of style anytime soon. Not sure what you mean about complicated syntax.

I supect you may be new to Ruby and confused by the heredoc sytnax. If so, this post has a review of some of the syntactical issues with heredocs:

http://log.gmarik.info/2007/12/rubys-here-document-heredoc-m...

Hope that helps.




Not confused. Heredoc is one of the things that complicates Ruby syntax from the implementer's POV.

Use heredoc for metaprogramming? Now I'm starting to believe in the Lisp dogma.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: