savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
153 stars 12 forks source link

DEPRECATED: `_until` methods using boolean-driven loop interruption. #475

Closed jemc closed 1 month ago

jemc commented 1 month ago

Using a boolean yield block result to determine whether an "each"-like loop should continue is an old pattern I added to Savi early on.

Now this pattern is superceded by the fact that the break macro now works with yield blocks just as well as it works with inline loop macros.

So the old pattern of defining a separate _until method is now kind of an anti-pattern, and shouldn't be used anymore, going forward.

This commit marks those standard-library methods as being DEPRECATED. They'll be removed in the future.

jemc commented 1 month ago

The MacOS CI failure is unrelated, and I'll look into that separately.