How about
likely(n)
... where 0 <= n <= 1.0, which will return true with a probability of
n. Even better, just make n an optional arg to maybe().
Sent from my iPhone
On Sep 3, 2010, at 9:29 AM, Kassen
2010/9/3 Rebecca Fiebrink
OR, because it's chuck and therefore more fun than your average language: Ok, that's it.
Let's have "probably" and "perhaps" at 75% and 25% as well. Everyone loves "maybe" so much, we might as well have more of it.
Does English have single words describing indeterminate times and/or durations that aren't already reserved or would be confusing? We talk about "in a bit" or "in a while" but those sound like they would be cause for confusion. "soon" might be a good one?
Kas. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users