[#395] Switch to home-grown string interpolation
Description
Not updating changelogs, want to see if it passes all tests first (particularly doctests, since running those locally is a bit of a chore)
Problem: interpolate, which we use for string interpolation, is quite dependency-heavy, and we do not actually use the features those dependencies are required for.
Solution: make our own. See "Morley.Util.StringInterpolation" for documentation.
One feature we lose is the ability to use expressions inside interpolated strings, but we didn't actually use it anywhere, and anyway it's arguably way cleaner to write, e.g.
[md|${one} ${two}|] where
one = pretty bigExpression
two = pretty evenBiggerExpression
than inline those expressions in the string.
Related issue(s)
Resolves #395 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Nikolay Yakimov