For a while now, we've tended to use strings rather than enums in DOLFIN to make interfacing to Python easier. It may be a SWIG 3 things, but SWIG seems to handle enums really well now. From C++, enums are cleaner than strings, and from IPython we get tab-completion for enums. From Python, the enum syntax is close to the NumPy syntax for various things, e.g. np.inf.
Is there any reason we should keep using strings over enums when enums are appropriate? Should we worry about SWIG 2 compatibility? Garth _______________________________________________ fenics mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics
