Hello! I am new in the forum and i registered because I had a question. I am a junior developer and i was wondering about the functionality of match_embeds.
So one of the arguments is
old_wgts which the function itself changes in place and at the same time it returns the changed in place
old_wgts argument. Whats the point of changing some variable in place and at the same time returning this variable. Anyway the old variable has been modified so it seems a bit redundant.
Just wondering if that was intended and if that is a good practice in Software Development. To me it seems a bit redundant, so either you change a variable in place or you return a new variable without modifying the original one.
Thanks a lot!