uu.seUppsala University Publications
Change search
ReferencesLink to record
Permanent link

Direct link
Pattern Matching in Encore
Uppsala University, Disciplinary Domain of Science and Technology, Mathematics and Computer Science, Department of Information Technology.
2016 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Encore is a young object-oriented programming language. The standard object-oriented model which embraces encapsulation works well for many kinds of problems but not all; it does not perform well when the algorithm inherently demands many objects to be decomposed at once. To address the need for an elegant way to write programs that solve such problems we have extended Encore with a pattern matching construct capable of decomposing objects. This thesis recounts how we designed and implemented pattern matching in Encore and presents some examples of how it can be used. We found that for problems that are not well suited for fully encapsulated objects, pattern matching leads to much more concise and clean code. However, this comes at the cost of additional run-time.

Place, publisher, year, edition, pages
2016. , 34 p.
IT, 16021
National Category
Engineering and Technology
URN: urn:nbn:se:uu:diva-294513OAI: oai:DiVA.org:uu-294513DiVA: diva2:930151
Educational program
Bachelor Programme in Computer Science
Available from: 2016-05-23 Created: 2016-05-23 Last updated: 2016-05-23Bibliographically approved

Open Access in DiVA

fulltext(678 kB)33 downloads
File information
File name FULLTEXT01.pdfFile size 678 kBChecksum SHA-512
Type fulltextMimetype application/pdf

By organisation
Department of Information Technology
Engineering and Technology

Search outside of DiVA

GoogleGoogle Scholar
Total: 33 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 43 hits
ReferencesLink to record
Permanent link

Direct link