Just reading the Astronomy package doc, I am a bit confused by the presence of distinct class inheritance
C2 = C1.inherit
and class extensions mechanisms
C1.extend( additional fields )
Couldn’t the extension example:
if (Meteor.isServer) {
User.extend({
fields: {
private: String
}
});
}
be handled by an inheritance:
PrivateUser = User.inherit({
name: 'PrivateUser',
fields: {
private: String
}
});
and then use PrivateUser in the server instead of User?