Sign in
Log inSign up

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.?