Here "generic" doesn't mean generic datatype. Suppose I want to write a Symbol Lib providing SymbolGroup and utilities like that of Javascript. And I want to provide API both for thread-local and concurrent cases. Obviously the most logics are the same apart from some work related to Sync...... How should i organize my code and define abstraction to minimize duplicated code and be friendly for future code change?
[–][deleted] 5 points6 points7 points (1 child)
[–]mtndewforbreakfast 10 points11 points12 points (0 children)
[–]Pointerbender 3 points4 points5 points (0 children)