String vs Hash Syntax? Jakub T. Jankiewicz 26 Jul 2025 18:14 UTC

Hi,

What is the reason to add string syntax instead of syntax with a hash where
characters don't need to be escaped?

It's supported by Gauche and Kawa. The syntax looks like this:

#/(foo|bar)*/

I also updated the syntax in my own interpreter to use the same syntax.

Using strings for regular expressions can lead to Leaning toothpick
syndrome[1]

[1]: https://en.wikipedia.org/wiki/Leaning_toothpick_syndrome

--
Jakub T. Jankiewicz, Senior Front-End Developer
https://jakub.jankiewicz.org
https://lips.js.org
https://koduj.org