Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Clojure Polymorphism

You're reading from   Clojure Polymorphism Leverage Clojure's polymorphic tools to develop your applications

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher
ISBN-13 9781838982362
Length 56 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Paul Stadig Paul Stadig
Author Profile Icon Paul Stadig
Paul Stadig
Arrow right icon
View More author details
Toc

Table of Contents (7) Chapters Close

Conclusion

About

This section includes steps that are to be performed by the students to complete and achieve the objectives of the book.

Clojure's options for abstraction definition and implementation have a variety of advantages and disadvantages. There is no universal rule for how to use them. You must balance concerns about flexibility, code elasticity, performance, separation of concerns, cross-platform compatibility, and dynamism (to name a few).

By looking at a couple of different problems solved in different ways, we have extracted some principles:

  1. If you have a reasonable expectation that your code may change, then you should use some kind of runtime dispatch mechanism (even that from Plain Functions + Client Namespace).
  2. Using runtime dispatch, even if you don't necessarily need it, will increase the elasticity of your code.
  3. Most likely, you should have a client namespace to separate client (code that uses the abstraction) concerns...
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime