Logo

Programming-Idioms

History of Idiom 50 > diff from v81 to v82

Edit summary for version 82 by programming-idioms.org:
[Prolog] Emphasize in comments

Version 81

2022-02-24, 00:43:09

Version 82

2022-02-24, 00:43:52

Idiom #50 Make an infinite loop

Write a loop that has no end clause.

Ouroboros eating its own tail

Idiom #50 Make an infinite loop

Write a loop that has no end clause.

Ouroboros eating its own tail
Extra Keywords
unbounded,unlimited,never,ouroboros,uroboros
Extra Keywords
unbounded,unlimited,never,ouroboros,uroboros
Code
repeat, write("hello\n").
Code
repeat, write("hello\n").
Comments bubble
This a bit strange, repeat is a predicate that will always succeed, that is always true.
Comments bubble
This a bit strange, repeat is a predicate that will always succeed, that is always true.
Doc URL
https://www.swi-prolog.org/pldoc/doc_for?object=repeat/0
Doc URL
https://www.swi-prolog.org/pldoc/doc_for?object=repeat/0