betaveros / noulith

*slaps roof of [programming language]* this bad boy can fit so much [syntax sugar] into it
1.13k stars 20 forks source link

1 < _ < 9 #7

Open MichalMarsalek opened 1 year ago

MichalMarsalek commented 1 year ago
  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)?
betaveros commented 1 year ago

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...