Crystal Easy · Lesson 8

Macros and record

Use record for value types, write a macro with {{ }} interpolation and {% for %} loops, and see that macros expand to code at compile time.

Lessons · Crystal Easy · Lesson 8 of 10

Macros and record

Use record for value types, write a macro with {{ }} interpolation and {% for %} loops, and see that macros expand to code at compile time.

Illustration for Crystal
Use record for value types, write a macro with {{ }} interpolation and {% for %} loops, and see that macros expand to code at compile time.