My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Are there any real benefits of having object oriented features in "Functional First" languages ?

Lorefnon's photo
Lorefnon
·May 29, 2016

Languages like OCaml, F#, Lisp etc. are advertised as primarily functional languages however they also have object oriented features (either built in eg. OCaml & F#) or through well supported libraries (eg. CLOS).

From a pragmatic perspective, are there actual use cases where having such object oriented features are beneficial ?

The only use case that I have been able to truly appreciate is compatibility with other object oriented languages, especially when they share the same underlying runtime, as is the case with F#.