8THE TYPE SYSTEM

Object-oriented programming is an exceptionally bad idea which could only have originated in California.

—Edsger Dijkstra

Image

Up to now we’ve been using and creating a lot of functions. We can think of functions as the verbs of the Julia language. And just as in natural languages, verbs act on nouns. The nouns in Julia are numbers, collections, strings, and other instances of types.

We’ve encountered many data types in our journey up to this point: different varieties of numbers, strings, characters, and collections such as arrays and maps. Although our focus hasn’t been on types, it’s impossible to talk much about Julia programming ...

Get Practical Julia 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.