Chapter 6. Expressions and Statements

Expressions and statements are the backbone of most programming languages. We have seen many of Dart’s expressions and statements already. In this chapter we will give a systematic overview of the expressions and statements of Dart.

6.1 Expressions

6.1.1 Literals

We’ve encountered all of Dart’s literals by now, but this is an opportunity to go through them all in an orderly fashion.

6.1.1.1 Integers

God made the integers; all the rest is the work of man.

Leopold Kronecker

In Dart, integers can be of arbitrary size. However, the use of very large integers is likely to be relatively expensive. Beyond a certain boundary, which varies among implementations, integers can no longer directly take advantage ...

Get The Dart Programming Language 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.