Modularity is a key concern in programming. However, programming languages remain limited in terms of modularity and extensibility. …