Blog

Divyagoalescor03 Dec, 2021Business

Ah, now I see what you mean ? I didn't look far enough! I don't know this code well (in fact I'm not sure why you picked me as a reviewer), but off the top of my head: the question is not just whether tokens_iterator happens to be the same thing as const Token * now. It's whether it's guaranteed to stay that way in the future. One of the purposes of these iterator types is that they form an opaque abstraction layer: the client uses the type in only the ways that are guaranteed to work by the iterator specification, and then the implementation can completely change without breaking any client.

Divya Goal

Divyagoalescor03 Dec, 2021Games

I don't know this code well (in fact I'm not sure why you picked me as a reviewer), but off the top of my head: the question is not just whether tokens_iterator happens to be the same thing as const Token * now. It's whether it's guaranteed to stay that way in the future. One of the purposes of these iterator types is that they form an opaque abstraction layer: the client uses the type in only the ways that are guaranteed to work by the iterator specification, and then the implementation can completely change without breaking any client.

Recent Profiles

Kaaren Andersen

Kaaren Andersen

View Profile

79King

79king

View Profile

Profit Squad

Profit Squad

View Profile

Exam Talks

Exam Talks

View Profile

Kèo bóng đá Ngoại Hạng Anh Kèo Nhà Cái

Kèo Bóng đá Ngoại Hạng Anh Kèo Nhà Cái

View Profile

ganqcsacom

Ganqcsacom

View Profile

CopperCoast GarageDoors

Coppercoast Garagedoors

View Profile

kudret

Kudret

View Profile