Appendix B. Boo language syntax

This appendix is intended as a language reference. It lists the Boo syntax, compares it to the C# equivalent, and provides a few words of explanation. In many cases, the Boo and C# syntax are similar, in both shape and intent.

Note

For a more explanatory guide to Boo, see appendix A.

B.1. Interesting keywords

Assuming that you are already familiar with another programming language, the Boo syntax should be familiar to you. Table B.1 compares Boo syntax to the equivalent C# syntax.

Table B.1. Boo syntax compared to C# syntax for keywords

Boo syntax

C# equivalent

class Car:    pass

public class Car{}

Because Boo has significant whitespace, specifying an empty declaration can be a bit of a problem. The ...

Get DSLs in Boo 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.