Open joningold opened 8 years ago
Okay, yeah, I can see that's hard to do any other way.
Any suggestions for a better name? :)
I wondered about "deal": as in, a pack of cards.
Raises an interesting side point - should it be "shuffle n-1 entries and then stop on the last" - so more like a stopping list but with the first entries shuffled - or a once list, which "disappears" once it's all done. (We've talked about removing once in favour of stopping-plus-blank, so it's that same issue again. )
because if we do shuffle-then-stop I really don't know what to call it.
Jon On Sun, 11 Sep 2016 at 10:27 pm, Joseph Humfrey notifications@github.com wrote:
Okay, yeah, I can see that's hard to do any other way.
Any suggestions for a better name? :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/inkle/ink/issues/182#issuecomment-246205852, or mute the thread https://github.com/notifications/unsubscribe-auth/AA40o6wvWuwK6pvl-Tv04uM0izKghmDYks5qpHI3gaJpZM4J6Fyq .
Hah! Snap, I was thinking of deal + the idea of card metaphors too.
Hrm yeah, almost like the stopping vs once part should be a modifier than a specific type... but that could get annoyingly complex. Reading the syntax could be like deciphering a regex. Some sequence attributes are compatible, some aren't.
I liked the {stopping|} implicit syntax for once, but you can't do that for shuffle unfortunately...
We have a few places now where we use the concept of "once", shame they all use unrelated syntax.
I've found myself needing this feature, too! Before reading this thread, I was hoping it could be achieved by adding up the sigils. I feel like these are pretty simple to understand— just modifier flags that stack regardless of their order.
Shuffle-once could be expressed in all the following ways: {~!Monday| Tuesday}
OR {!~Monday| Tuesday}
OR even
{~!:
- Monday
- Tuesday
}
I know the multiline version probably looks terrible to some, but I feels more consistent to have sigils work in both the inline and multiline forms.
The annoying bit is that, for these flags to work the way I'd expect, Shuffle on its own would need to otherwise act like the default list— a stopping list. Its current behavior could be regained using shuffle plus cycle: ~&
or &~
I'm aware that this is probably too much of a breaking change to make, though. So maybe disregard this whole idea...
So, this needs a better name, but
= top { shuffle-once:
might produce A B C or C A B or A C B