mercredi 18 mars 2015

Is an Optional/Maybe type useful in dynamic languages?


Optional is useful in an obvious way in a statically typed language, but I'm wondering if it's also useful in dynamic languages. Usually there's no compiler telling you, "hey, you used this Optional<String> as a String", so you still have to discover your mistakes at runtime. I have a static typing background and from my perspective I can't see the benefit of an Optional type in a dynamic language.





Aucun commentaire:

Enregistrer un commentaire