savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
157 stars 12 forks source link

Add `None.into_string`, which emits nothing (i.e. an empty string). #290

Closed jemc closed 2 years ago

jemc commented 2 years ago

This will be used in string interpolation for cases where the interpolated expression has a type of (SomeType | None) - the interpolation will either be the representation of SomeType or it will come out empty, indicating None.