News for hackers. Stuff that matters.
Re:Misconceptions about loops in C by eigenket on Thursday June 27, 2024 @03:33PM (#40814179)
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.

Re:Misconceptions about loops in C by KineticLensman on Thursday June 27, 2024 @04:10PM (#40814557)
> 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

Re:Misconceptions about loops in C by warkdarrior on Thursday June 27, 2024 @05:08PM (#40815128)
You guys should write these crochet patterns in continuation passing style!
Re:Misconceptions about loops in C by playingalong on Thursday June 27, 2024 @03:50PM (#40814344)
Rinse and repeat.