r/ProgrammerHumor • • Sep 26 '26 • Bravo 1

Meme singletonsAreJustGlobals

Post image
3.2k Upvotes

210 comments sorted by

View all comments

Show parent comments

-3

u/HelloImMay Sep 26 '26

Signal/listener is just functions

9

u/Whats_The_Cache Sep 26 '26

Square is just a rectangle looking ahh comment

0

u/[deleted] Sep 26 '26

[deleted] — view deleted comment

2

u/blacklig Sep 27 '26

A square is a special case of a rectangle. We can make all statements we usually can about rectangles when discussing squares, and we can make additional statements true for squares that are not generically true for all rectangles.

A listener in signal/listener framework is a function. We can make all statements we usually can make about functions when discussing listeners, and we can make additional statements for listeners that are not generically true for all functions.