Hi guys

we can do better in terms of comments.

https://pharo.fogbugz.com/f/cases/19193/Halt-once-comment-mega-sucks

In Pharo 60 I tried to use Halt once.

There is no menu to set it up anymore so I looked in the class ... :(

What a supercool and welcoming comment

Halt is provided to support Object>>halt.

once
    | callingContext senderContext node |
    <debuggerCompleteToSender>

resetOnce
     (#haltOnce senders, #inspectOnce senders) do: [ :method |
        method ast sendNodes do: [ :sendNode|
            sendNode removeProperty: #Once ifAbsent: [  ]]]

Not a single comment!
I'm sure that we can do a lot better and think to all the newbies that
will check pharo.

Please comments such methods and class.

Stef

Reply via email to