700 Words

I have never been a huge fan of birthdays. I am not too convinced why celebrate this one out of three-sixty-five days just because you were born on this day many years ago! Maybe some people feel…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Chapter 19 Read and Eval

Getting Clojure — Pragmatic Programmers (178 / 194)

👈 Wrapping Up | TOC | You Got Data On My Code! 👉

Programming-language syntax is a lot like politics: very few people do it for a living but virtually everyone has an opinion. And many have strong opinions. Certainly it’s not hard to find strong opinions about Clojure’s syntax. Many of us love what we see as its elegant terseness while some programmers can only see parentheses. Lots and lots of parentheses.

Clojure’s somewhat odd syntax is not the shady outcome of a conspiracy of parentheses manufacturers. Nor is it a completely arbitrary esthetic choice. Clojure’s syntax is an integral part of how the language works. So in this chapter we’re going to look at the two critical functions at the heart of Clojure, read and eval, and at how they relate to all those parentheses. Along the way we’ll take a moment to write our own version of eval, essentially building our very own toy Clojure implementation.

If all that sounds intimidating, take heart: like everything else in Clojure, read and eval are simple. They are also critical to getting to the next level of insight into how the language works. So let’s get started.

👈 Wrapping Up | TOC | You Got Data On My Code! 👉

Add a comment

Related posts:

An Open Letter to The Indian Parent

I know that your primary concern is always your child. I know that you worry about their safety every day. I know that you worry about their future every day. But, as a former Indian child and an…

Deploy Multiple Sites using Oracle Cloud Application Load Balancer

Oracle Cloud Infrastructure (OCI) Application Load Balancing enables customers to distribute web requests across a fleet of servers or automatically route traffic across fault domains, availability…