Pattern Matching in Encore
Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
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.
Engineering and Technology
IdentifiersURN: urn:nbn:se:uu:diva-294513OAI: oai:DiVA.org:uu-294513DiVA: diva2:930151
Bachelor Programme in Computer Science
Wrigstad, TobiasGällmo, Olle