Home
Julio Oliveira
Cancel

Why use Enums instead simple primitive types

Some data value use a basic type like str or int, but not all str and int are valid values of that data value. Enums can limit the possibilities to only a defined set of values. Example: Blood typ...

Trending Tags