Just a quick suggestion, without knowing how practical it is: it'd be very convenient to be able to specify default values in the slice mapping files.
Though there may need to be some restrictions on how many, what types, etc. this could simplify using constructors significantly.Code:module omero { module grid { class JobParams { string name; string description; int timeout = 30; // Seconds ...
Code:# python class JobParams: def __init__(self, name, description, timeout = 30): ... j = omero.grid.JobParams("name", "description")Code:// Java public class JobParams { public JobParams(String name, String description) { this(name, description, 30); } ...

Reply With Quote
