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

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct