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

Broadway NY Cleaning

Broadway Ny Cleaning

View Profile

cazimbocasino

Cazimbocasino

View Profile

casinovox

Casinovox

View Profile

nhandinhkeonhacaitvGT

Nhandinhkeonhacaitvgt

View Profile

pack heap

Pack Heap

View Profile

SUN88

Sun88

View Profile

Oberheiden P.C.

Oberheiden P.c.

View Profile

James Hanson

James Hanson

View Profile

Gamblers

Gamblers

View Profile

Stucco HQ

Stucco Hq

View Profile