Skip to content

Ruby's Hidden do {} while () Loop

archive.jvoorhis.com
2 pointsjz1 comment
On HN

Comments

jzOP

I've been programming exclusively in Ruby for almost 3 years now and came across this while I was looking at tempfile's source. I was gonna write about it but turns out this guy sums it up pretty good. I apologize since this is a news site and the post is from 2007, but it was news to me and I thought it was a very elegant hack.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.