Ask HN: How do other languages besides Java do framework integration?

2 points by Konohamaru ↗ HN
We're using the Spring Boot framework, and it uses a lot of @Annotations to do a lot of stuff automatically. This almost reminds me of C macros. What better ways do other languages use to do automatic framework stuff?

2 comments

[ 5.0 ms ] story [ 58.2 ms ] thread
I’ve used DI before but never fully studied how Spring uses it. I assume you’re referring to the automatic instantiation of an object based on session, request, etc. What do you feel you get out of it, that would be significantly different from just constructing the objects manually in a lifecycle method? (Just trying to better understand the question)
Well, @Autowired is necessary for DI because there is no way to ensure the dependencies are injected globally, because Spring Boot automatically creates a control flow.

What are the annotations doing and how do other languages do DI and stuff like that?