© J.J. Merelo 2019
J. MereloPerl 6 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4956-7_9

9. Roles and Classes

Bundling Code and Data in the Same Block and Reusing It Is the Main Part Roles and Classes Play in So-Called Object-Oriented Languages
J. J. Merelo1 
(1)
Granada, Spain
 

Object-oriented programming has been one of the prevailing paradigms in computing in the last few decades. It provides easy abstractions of the problem domain and a way to model it that feels natural. However, there are many ways to orient your programming to objects. As is usual in Perl 6, it does not opt for one of them: it includes them all and lets the user pick their preferred one. This style of programming does not preclude the other styles you have seen: you ...

Get Perl 6 Quick Syntax Reference: A Pocket Guide to the Language, the Core Modules, and the Community now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.