Could we have a do while loop in Julia?

It’s pretty easy to create a macro to give you almost exactly the syntax you’re looking for. For example: Some useful macros for Julia · GitHub (see @once_then) or: Introducing Julia/Metaprogramming - Wikibooks, open books for an open world (see @until, which is a different structure but illustrates the basic idea).

5 Likes