As the article suggests, rather than consider type hints mandatory, it's better just to check whether you need them with warn-on-reflection.
Re:Data Structures in Clojure: Hash Tables
by zephjc on Tuesday February 04, 2014 @12:48PM
(#7179027)
Yeah, the less runtime reflection you make it use, the better the speed gains (I'm glad type hints are optional though).
Re:Data Structures in Clojure: Hash Tables
by DigitalJack on Tuesday February 04, 2014 @01:01PM
(#7179119)
I only start type hinting if performance has proven to be a problem.
That makes it sound like type hints are essentially mandatory for anything where performance matters.
Nice article! It would have been interesting to see how it fares against something like java.util.HashMap.