Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
544 views
in Technique[技术] by (71.8m points)

interface - loose coupling from a C++ opensource Parser

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:

  1. 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).
  2. 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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...