noulith icon indicating copy to clipboard operation
noulith copied to clipboard

1 < _ < 9

Open MichalMarsalek opened this issue 2 years ago • 1 comments

  1. Using _ for both lambdas and discards seems confusing. Have you considered some alternatives?
  2. Would it be possible to extend the readme regarding pattern matching (in function args and in switches)?

MichalMarsalek avatar Dec 23 '22 18:12 MichalMarsalek

Hmm, I did think about allocating ? or "identifiers beginning with ?" to one of these, and maybe guarded patterns like case x if 1 < x < 9 -> ... would make some use cases more readable, but it's also basically what Scala does so I don't really mind it that much. I'll look at the docs...

betaveros avatar Dec 29 '22 23:12 betaveros