Closed LinqLover closed 3 years ago
Yes, I saw that paragraph and I think that the location could work for the discussion. I will try in the next few weeks to write it. If you feel like it and are willing to endure the review cycles you can also give it a try. :)
Am Fr., 25. Sept. 2020 um 17:55 Uhr schrieb Christoph Thiede < notifications@github.com>:
@LinqLover commented on this pull request.
In Model/Model.tex https://github.com/codeZeilen/SqueakByExample-english/pull/37#discussion_r495082120 :
@@ -858,17 +858,10 @@ \subsubsection{Other useful global variables} (Smalltalk at: #Smalltalk) == Smalltalk --> true \end{code}
+% ct: TODO DISCUSS: Shall we really recommend the usage of \ct{Sensor} any longer?}
Later in this section, there is already a paragraph discouraging the use of global variables, but it's probably not precise enough: https://github.com/codeZeilen/SqueakByExample-english/blob/b8470833881043eafd33f06de62b51fee38e1313/Model/Model.tex#L880
World, ActiveHand, and Sensor are all Morphic-specific. Would the new description of #currentWorld and #currentHand maybe belong there?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/codeZeilen/SqueakByExample-english/pull/37#discussion_r495082120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEI3YBQBFHLJVMG5Y7FQH3SHS4Q5ANCNFSM4RXGLRFA .
If you feel like it and are willing to endure the review cycles you can also give it a try. :)
I'm trying my luck now :-)
@codeZeilen Hmm, didn't the "request review" button trigger a notification, or didn't you have time yet? 😅
@codeZeilen Thanks for the detailed review! Two open questions are left. :-)
@codeZeilen Looks like there are no open change requests, anything left to do, or can you merge this?
Global variables should be used as seldom as possible; their usage is not considered idiomatic for the most time. Emphasize this aspect in the relevant sections. Nuke description of Morphic globals (
World
andActiveHand
) that are meant to be deprecated and should not accessed manually at all. See also: [squeak-dev] Changeset: Eliminating global state from Morphic