As many have described, I’ve seen this work reasonably well too - while I’ve
seen the pvt prefix convention, I’ve also seen _name used to - which I felt was
marginally better (it also means private methods get grouped at the top of the
“all list” and not alphabetically in the middle’ish (but it’
If something, I'd rather have _ as a prefix indicating a private
method, very much like Dart does.
But why use a "syntax" trick when it could be an attribute of the
CompiledMethod itself?
As for many private methods being a code smell... it could be, but it
depends, until you find the right abstra
Hi,
Smalltalk should be readable - so I dislike the prefix approach like "_"
or "priv".
Pharo has a unified property API so one can annotate both: methods and
classes
(unfortunately not yet serialized into Tonel). It could be used to
depict a scope or other:
MyClass propertyAt: #scope pu
You are very right - it hadn’t sunk in that a compiled method attribute would
give you what you want - but then we are back to an easily extendible browser …
which I think calypso actually is … hmm should be quite easily doable to get
all described here - and show private methods in a private c