It seems more like something for ``when`` and ``unless`` than for ``if`` since the balancing quotation can be first or second.
[ drop ] [ . ] if -> [ . ] 1unless [ + . ] [ 2drop ] if -> [ + . ] 2when Maybe that works? On Mon, Dec 24, 2018 at 1:57 PM Alexander Ilin <ajs...@yandex.ru> wrote: > Hello! > > I notice that many times we do something with an object if a condition > is true, and otherwise we drop it. Search for "[ drop ] if", and you'll > find many instances of what I'm talking about, it's a fairly common > occurrence. I am often tempted to use `when` in those cases, but it doesn't > match the profile, because it doesn't drop the object when the condition is > `f`. > > So, my question is: do we have such a word? Could we borrow one from a > similar language? Could we invent it? > Something like `1if` or `if'`. > > ---=====--- > Александр > > > > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk >
_______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk