m-labs / nmigen

A refreshed Python toolbox for building complex digital hardware. See https://gitlab.com/nmigen/nmigen
https://nmigen.org
Other
652 stars 55 forks source link

Case pattern syntax improvement #316

Closed porglezomp closed 4 years ago

porglezomp commented 4 years ago

While I was working with cases I tried using underscores in my patterns as byte separators, expecting it to match the integer literal syntax, but it was rejected.

I'd like to be able to write patterns like "0001_0---"—does this seem like a good idea, or is the potential confusion between - and _ a problem?

programmerjake commented 4 years ago

why was this closed? it seems like having a separator of some sort is a good idea.

sbourdeauducq commented 4 years ago

@porglezomp This repository is still maintained.