Skip to content
Prev 11008 / 21312 Next

[Bioc-devel] R6 and Bioconductor

As far as separating implementation from interface, a fairly simple
separation is fields are implementation, methods are interface. While
active bindings allow encapsulated fields (often called "properties"
in other languages), it puts extra cognitive load on the user to
remember which state components are fields and which are returned by
methods. Some frameworks use properties to enable observation of
mutable state (see the objectProperties package on CRAN for doing this
with reference classes). But with reactivity in vogue, it's not clear
whether the explicit observer pattern is still relevant.

Michael
On Sat, May 13, 2017 at 2:15 AM, Garth Ilsley <garth.ilsley at oist.jp> wrote:
Message-ID: <CAOQ5Nye9PgAZWpL48_DcA_L9TDdVJo7VS6LnW4xE8rNEhmwXdA@mail.gmail.com>
In-Reply-To: <KAXPR01MB1063294BCAF60F575EDCE3A98FE30@KAXPR01MB1063.jpnprd01.prod.outlook.com>