You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This needs to be documented. Let's not add magic. You change the path, you change the path only. What if the change in path represents a move? Then you might want to keep position info.
I agree with @tvdstorm: the user can control all aspects of the location let's not introduce too much magic here. What we should also document is that the position information can be added in function call style. The other day I wrote this: getSearchPathLocation(l.path)(l.offset, l.length, l.begin,l.end) and that is very handy -- and explicit: get another location but preserve the original position information.
Both @joukestoel and I have recently run into this confusion:
the location keeps the offset & length, I think that perhaps certain changes in the path should drop the offset information?
So what do you think, what would be more expected/consistent? And are there certain changes that might not drop the offset information?
The text was updated successfully, but these errors were encountered: