I am using a C++ Parser from an opensource "A" project directly, which undergoes updates quite often, and unfortunately, the changes propagate to my code.
for example:
- In version A1 there is a method like
F(x,y)
and in version A2 method has changed to F(x,y,z)
, an extra argument is added and there is no backward compatibility (F(x,y)
in A1 was deleted).
- there was a Map data structure in A1 and it has changed to sharing-Map in A2 which does not support methods like find. again with no backward compatibility(Map in A1 was deleted).
I was wondering how can I loose-couple my code from these regular changes of the parser?
question from:
https://stackoverflow.com/questions/65925828/loose-coupling-from-a-c-opensource-parser 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…