My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

arguments type checking - is it required in loosely typed languages ?

Mohamed Adel's photo
Mohamed Adel
·Nov 21, 2017

Say we have a couple of functions, each receives/expects to receive a couple of parameters.

Should i write code to check the type of each of these parameter and return exceptions for each invalid case.?