jamulussoftware / jamulussoftware/jamulus
Refactor: Improve country code conversion failure modes
Aperta
@hoffie ci sta già lavorando.
Dal 9/9/2022.
refactoring
- Lingua principale
- C
- Stelle
- 1.1k
- Fork
- 248
- Merge medio
- 2g 3h
- PR unite (30g)
- 9
Descrizione
I'd rather "convert to wireformat" and "convert from wireformat" were both "safe" - i.e. returned "Error" (e.g. -1) or a valid response, given any integer value, then have the caller deal with the error as it sees fit. Having to "know" about the
IsCountryCodeSupportedon top of the conversion methods seems excessively complicated.
Originally posted by @pljones in https://github.com/jamulussoftware/jamulus/pull/2829#discussion_r965319280
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.