I really like languages where private functions are fewer keystrokes than public functions.
Unfortunately 'protected' is longer than 'public', or 'pub(crate)' and 'pub'.
Have any languages solved this? E.g. 'fn foo', 'pkg fn foo', 'public fn foo' would work.
miniblog.
Related Posts
I feel like increasing visibility of a function/type should require more verbosity. I don't know of any PL that follows this design principle for >2 levels though.
Ordered by verbosity:
public, private, protected
, pub, pub(crate)
Has any PL solved this?