Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
551 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...