> How do you solve this problem

First, I can not remember that I myself cared for the fact if a symbol in 
source code I was reading or working on was local/private or public. There may 
exists cases when one cares, but I just can not remember a concrete case.

Second, we can use unicode for symbol names. I never did, but maybe there is a 
nice unicode symbol available?

And further, when a leading underscore should indicate private symbols, then 
the compiler had to enforce it, so that the visible appearance is always 
correct. And when we use leading underscore as private mark, then we can also 
use question mark to indicate query as sorted?() in Ruby and Chrystal to return 
a bool instead a sorted copy. And then we can ask for more such visible markers.

And finally we may have IDE/Editor support to differentiate between private and 
public symbols.

Reply via email to