Literals

I’ve often wondered why we programmers are so enamored with literals. I’m waiting for the day when a language comes along and introduces “figuratives.” In the interim, the rules Ruby uses for literals are simple and intuitive, as you’ll see the following sections.

Get Ruby in a Nutshell 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.