Re:Classes are Expressions
by rmrfrmrf on Thursday June 04, 2015 @05:57PM
(#9662406)
sure :P (EDIT: Just kidding; the parent's point totally flew over my head). I've actually created classes this way in the past when I worked with a team of enterprise Java developers lol. You could also make magic getter/setter methods if you really wanted to get crazy with it.
[ Parent
| on HN ]
This isn't quite the same; the parent is pointing out that you can implement `sameFirstName` without exposing `firstName` publicly at all, not even as a getter.
Oh wow, I totally missed that. Thanks for clarifying!