5 ms·
Even in languages where this is possible, it's usually idiomatic to explicitly type the public interface including exposed fields, and often it's common to expl
by dragonwriter 6y ago
Even in languages where this is possible, it's usually idiomatic to explicitly type the public interface including exposed fields, and often it's common to explicitly type them narrower than the inferred type to avoid implementation details leaking into an unintentionally broad backward compatibility contract restricting future evolution.