Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Varun Ramesh's Blog
(Uncensored)
subscribe
Automatically Promoting Constructor Parameters to Fields - Varun Ramesh's Blog
https://blog.varunramesh.net/posts/constructor-argument-promotion/
links
backlinks
When writing object-oriented code, you frequently want a constructor that takes in values and assigns them to object fields. Some languages reduce the repetition required for this.