brendt / stitcher.io

Source code of stitcher.io
https://stitcher.io
179 stars 135 forks source link

Update 2020-06-12-constructor-promotion.md #219

Closed gormur closed 1 year ago

gormur commented 1 year ago

I put in a couple of comments in the sample code to show where the "magic" assignment happens and thus hint how it might interact with other code in the constructor.

brendt commented 1 year ago

I don't usually add comments this way in my code blocks. Did you feel like I didn't explain the concepts well enough so that code comments were needed?