molpopgen / fwdpp

fwdpp is a C++ template library for implementing efficient forward-time population genetic simulations
http://fwdpp.readthedocs.io
GNU General Public License v3.0
27 stars 11 forks source link

Streamline serialization API #68

Closed molpopgen closed 6 years ago

molpopgen commented 7 years ago

The current API asks for writer and reader types. When mutation/diploid/etc. types change, these writers and readers also need updating. Currently, they are in different parts of the library, which is a problem.

A more idiomatic approach would be to rely on argument-dependent lookup and require that types do the right thing.

This is related to #67, which proposes a change to a type's data members, causing side-effects in other parts of the library.