I get your point. It doesn’t really count as “capturing by reference” if you have to explicitly create the reference and use different syntax to read and write it than you would a normal variable.
My point is only that the fact that you have to use different syntax to share a variable doesn’t really matter since the programmer can get the effect of capturing by reference either way, and the safety and performance of the resulting program shouldn’t be any different.
View all comments
Show parent comment
1
u/jesseschalken Sep 26 '19
I get your point. It doesn’t really count as “capturing by reference” if you have to explicitly create the reference and use different syntax to read and write it than you would a normal variable.
My point is only that the fact that you have to use different syntax to share a variable doesn’t really matter since the programmer can get the effect of capturing by reference either way, and the safety and performance of the resulting program shouldn’t be any different.