[erlang-questions] If you are homesick for object.selector
Richard O'Keefe
ok@REDACTED
Tue Jan 29 01:08:52 CET 2013
On 29/01/2013, at 5:16 AM, Evan Miller wrote:
> From my understanding of the Law of Demeter, a proper rewrite would look like:
>
> if (hasrating)
> {
> thechkbox = currRating[0].firstChildOfFirstChildOfThirdChildOfParentOfParentOfParentOfParentOfParentOfParent();
> thechkbox.disabled = false;
> }
No, it would be something like
if (has_rating) ratable_part().disable_checkbox();
More information about the erlang-questions
mailing list