Bridging the gap between object-oriented and logic programming
Koschmann, T.; Evens, Martha Walton
Access document
Publication: IEEE Software
Volume: 5
Issue: 4
Pages: 36-42
DOI: 10.1109/52.17800
ISSN: 0740-7459
Abstract:
Object-oriented programming (OOP) is highly effective for problems involving hierarchical data categorization, leveraging inheritance and data encapsulation to promote structured implementation and maintainability. However, OOP environments often lack generalized facilities for deductive retrieval and pattern matching, which are crucial for knowledge-based applications. Conversely, logic programming languages like Prolog excel in these areas with built-in deductive retrieval through backtracking and pattern matching via unification, offering a natural representation of rule-based knowledge. Despite its strengths, Prolog’s declarative style is awkward for inherently procedural tasks, and it lacks a robust library for graphical interfaces and user interactions. Combining object-oriented and logic programming in a multiparadigm approach could harness the strengths of both paradigms, utilizing each for its optimal tasks. This integration seeks to preserve the advantages of both OOP and logic programming, addressing the challenge of effectively merging these paradigms in a unified application.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.