Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think its fairly clear that loops are more natural and obvious for most people for most tasks.

There are examples of other communities which have invented something pretty much the same as loop syntax, for example you get things which are basically loops in knitting patterns or (less reguarly) in recipes. I have never seen an example of recursion outside computer science/programming.



> for example you get things which are basically loops in knitting patterns

Also in crochet. A pattern will have instructions like

* (2tr, 3ch, 2tr) all in next 2ch sp; repeat from * 6 times more

where statements like 2tr mean 2 treble stitches and the bit between the * symbols is repeated 6 times


You guys should write these crochet patterns in continuation passing style!


Rinse and repeat.




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

Search: