File Download
There are no files associated with this item.
Links for fulltext
(May Require Subscription)
- Publisher Website: 10.1145/1449764.1449799
- Scopus: eid_2-s2.0-63549108099
Supplementary
-
Citations:
- Scopus: 0
- Appears in Collections:
Conference Paper: The visitor pattern as a reusable, generic, type-safe component
Title | The visitor pattern as a reusable, generic, type-safe component |
---|---|
Authors | |
Keywords | Algebraic Datatypes Design Patterns Program Extensibility Software Components Traversal Visitor Pattern |
Issue Date | 2008 |
Citation | Proceedings Of The Conference On Object-Oriented Programming Systems, Languages, And Applications, Oopsla, 2008, p. 439-456 How to Cite? |
Abstract | The visitor design pattern shows how to separate the structure of an object hierarchy from the behaviour of traversals over that hierarchy. the pattern is very flexible; this very flexibility makes it difficult to capture the pattern as anything more formal than prose, pictures and prototypes. we show how to capture the essence of the visitor pattern as a reusable software library, by using advanced type system features appearing in modern object-oriented languages such as scala. we preserve type-safety statically and modularly: no reflection or similar mechanisms are used and modules can be independently compiled. the library is generic, in two senses: not only is it parametrised by both the return type and the shape of the object hierarchy, but also it allows a number of implementation choices (internal versus external control, imperative versus functional behaviour, orthogonal aspects such as tracing and memoisation) to be specified by parameters rather than fixed in early design decisions. finally, we propose a generalised datatype-like notation, on top of our visitor library: this provides a convenient functional decomposition style in object-oriented languages. Copyright © 2008 ACM. |
Persistent Identifier | http://hdl.handle.net/10722/188480 |
References |
DC Field | Value | Language |
---|---|---|
dc.contributor.author | Oliveira, BCDS | en_US |
dc.contributor.author | Wang, M | en_US |
dc.contributor.author | Gibbons, J | en_US |
dc.date.accessioned | 2013-09-03T04:08:38Z | - |
dc.date.available | 2013-09-03T04:08:38Z | - |
dc.date.issued | 2008 | en_US |
dc.identifier.citation | Proceedings Of The Conference On Object-Oriented Programming Systems, Languages, And Applications, Oopsla, 2008, p. 439-456 | en_US |
dc.identifier.uri | http://hdl.handle.net/10722/188480 | - |
dc.description.abstract | The visitor design pattern shows how to separate the structure of an object hierarchy from the behaviour of traversals over that hierarchy. the pattern is very flexible; this very flexibility makes it difficult to capture the pattern as anything more formal than prose, pictures and prototypes. we show how to capture the essence of the visitor pattern as a reusable software library, by using advanced type system features appearing in modern object-oriented languages such as scala. we preserve type-safety statically and modularly: no reflection or similar mechanisms are used and modules can be independently compiled. the library is generic, in two senses: not only is it parametrised by both the return type and the shape of the object hierarchy, but also it allows a number of implementation choices (internal versus external control, imperative versus functional behaviour, orthogonal aspects such as tracing and memoisation) to be specified by parameters rather than fixed in early design decisions. finally, we propose a generalised datatype-like notation, on top of our visitor library: this provides a convenient functional decomposition style in object-oriented languages. Copyright © 2008 ACM. | en_US |
dc.language | eng | en_US |
dc.relation.ispartof | Proceedings of the Conference on Object-Oriented Programming Systems, Languages, and Applications, OOPSLA | en_US |
dc.subject | Algebraic Datatypes | en_US |
dc.subject | Design Patterns | en_US |
dc.subject | Program Extensibility | en_US |
dc.subject | Software Components | en_US |
dc.subject | Traversal | en_US |
dc.subject | Visitor Pattern | en_US |
dc.title | The visitor pattern as a reusable, generic, type-safe component | en_US |
dc.type | Conference_Paper | en_US |
dc.identifier.email | Oliveira, BCDS: oliveira@comp.nus.edu.sg | en_US |
dc.identifier.authority | Oliveira, BCDS=rp01786 | en_US |
dc.description.nature | link_to_subscribed_fulltext | en_US |
dc.identifier.doi | 10.1145/1449764.1449799 | en_US |
dc.identifier.scopus | eid_2-s2.0-63549108099 | en_US |
dc.relation.references | http://www.scopus.com/mlt/select.url?eid=2-s2.0-63549108099&selection=ref&src=s&origin=recordpage | en_US |
dc.identifier.spage | 439 | en_US |
dc.identifier.epage | 456 | en_US |
dc.identifier.scopusauthorid | Oliveira, BCDS=12239474400 | en_US |
dc.identifier.scopusauthorid | Wang, M=7406689641 | en_US |
dc.identifier.scopusauthorid | Gibbons, J=7201472851 | en_US |