Re: Over exaggerated negative post on reddit programming
- Posted by irv May 06, 2015
- 2249 views
jimcbrown said...
euphoric said...
jimcbrown said...
Actually, the object() function allows you to test is a variable is unset...
I cannot imagine a case where this would be necessary. Are there examples of the utility of this functionality?
I can't think of any.
One comes to mind. In EuGTK, I can load a single library (for Linux) as an atom or a whole slew of libraries (Windows) as a sequence of atoms, so I declare LIBS as an object, then test:
if not object(LIBS) then crash...no libraries found.
Not that there aren't other ways to do this, but it was easy.