Re:Moment of Ruby: An Argument for Nothing
by zemptime on Friday November 06, 2026 @12:00PM
(#50394989)
Not totally following this one. If the contract of your methods needs to differentiate an actually supplied "nil" from "nothing was supplied", how does `defined?` accomplish that? For ex, using it would break the intended contract here:
calling cloaking with no argument clears the value this method is intended to read. could `defined?` be used to accomplish this in some way I didn't demonstrate here?
[ Parent
| on HN ]
There are no comments on this comment yet.