News for hackers. Stuff that matters.
Re:A Universe in One Line of Code with 10 PRINT by underwoodley on Monday November 13, 2017 @08:38AM (#15686424)
I don't see these programs as fundamentally different. The only material different is that one uses a GOTO and the other uses a while loop.

But I don't think either of these is more intuitive. When you learnt how a GOTO works, you probably learnt immediately afterwards how to use it to loop. This loop is a 'pattern', one which you would have to grok as a single idea before you could write a program like the above. This is similar to learning about a while loop, and then knowing you would need one when you wrote the Python script.

There are no comments on this comment yet.