You're considering things from a formal perspective rather than a practical one.
In theory the fact that someone unjustly attacked you should not change your positions on anything, but it may reasonably cause you to stop associating with them.
And associating with different people will cause you to hear different arguments, which is likely to change your positions because it changes the ratio of convincing arguments you hear from each side.
In practice that is just not true.
Many of my positions are self-moderated by the understanding that smart, kind, and reasonable people have opposing views.
A great example of this revolves around religion. Many smart, reasonable people are religious. I think a lot of the atheist crowd comes across as complete assholes, which does not help one win in any argument.
Often, however, our arguments have a strong unacknowledged bias. When we're challenged the bias becomes more visible.