Why does C have a distinction between -> and .?

前端 未结 7 1654
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 09:56

OK, this is of no serious consequence, but it\'s been bugging me for a while: Is there a reason for the distinction between the -> and . operato

相关标签:
7条回答
  • 2020-11-28 10:30

    If anything, the current syntax lets readers of the code know whether or not the code is working with a pointer or the actual object. Someone who does not know the code beforehand understands it better.

    0 讨论(0)
提交回复
热议问题