且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

您如何从主代码中完全分离代码以实现向后兼容性?

更新时间:2023-09-12 10:25:58

我通常的策略是单独进行一些操作,以将向后兼容性输入转换为新的实现输入,然后将新的实现代码与转换后的数据一起使用.

My usual strategy is to have something separate that will translate the backward compatibility input into the new implementation input, and then use the new implementation code with this translated data.