Foreword Foreword What was the last new thing you learned? Perhaps it was a foreign language, like Italian or German. Or maybe it was a graphics editor, like Photoshop. Or a c...
Requiring files require “filename” require “./filename” Other forms Requiring files Writing a program in a single file is OK for little snippets and small benchmark code. Bi...
Tracers Introduction Tracer Interface Setting up a Tracer Starting a new Trace Accessing the Active Span Propagating a Trace with Inject/Extract Tracing Systems Tracers ...
Statement Ordering Statement Ordering The order in which we express statements in our code is not necessarily the same order as the JS engine will execute them. That may seem l...
Structs Passing by value Inheritance Records Structs Instead of defining a type with class you can do so with struct : struct Point property x , y def init...
Destructured Parameters Destructured Parameters are Required Default Values for Destructured Parameters Destructured Parameters Destructuring has one more particularly helpfu...
Math Numeric types Arithmetic Equality and Comparison Operators Precedence Number Methods Math Methods Constants Math Numeric types The two most common number types are...
Structs Passing by value Inheritance Records Structs Instead of defining a type with class you can do so with struct : struct Point property x , y def init...
Generics Generic class methods Generic structs and modules Generic types inheritance Generics with variable number of arguments Generics Generics allow you to parameterize a...
Structs Passing by value Inheritance Records Structs Instead of defining a type with class you can do so with struct : struct Point property x , y def init...