[RFC PATCH 0/2] Strings interpolation

2022-12-10 Thread Olivier Dion
Hi Guilers, I've added a hash reader extension in ice-9 boot to do strings interpolation. One can interpolate expressions in a string by using the `@' character before the expressions. If that characters is doubled, then it acts as an escaping to insert itself without evaluation. The interpolat

[RFC PATCH 1/2] Add reader extension for interpolated strings.

2022-12-10 Thread Olivier Dion
From: Olivier dion Interpolate strings of the form #"The string @(eval this)". When no interpolation is required, simply return the raw string. For example, #"foo" will return "foo". When interpolation is required, return an expression that format the string with the embedded expressions withi

[RFC PATCH 2/2] Add tests for strings interpolation reader extension.

2022-12-10 Thread Olivier Dion
From: Olivier dion * test-suite/tests/reader.test: Add the tests. --- test-suite/tests/reader.test | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test-suite/tests/reader.test b/test-suite/tests/reader.test index 27daf6106..fb31575dd 100644 --- a/test-suite/tests/