Tom Ritchford
Jan 14, 2023

--

Terrible! Horrifying! Appalling! :-D

The constructor for Person now lets you enter any possible parameter. Type checking becomes impossible.

Use dataclasses for this purpose, you'll be glad you did.

--

--

No responses yet