Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This has been doable in static languages for a long time now, as well.


You are correct, and for some reference, Mockito 1.0 came out in 2014.

@Mock, @InjectMocks, and the ability to wire up an entire dependency tree has been something Typescripters have still not perfected like crusty Java devs.


Depends what you mean by "static". Swapping out a method or class implementation at runtime is pretty inherently a dynamic task.


Apologies, I assumed "static typed" was a fairly safe assumption.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: