Good code using regexes often has a comment giving an example of a typical string that it matches.
Could this be a first class language feature? It's a great pattern.
miniblog.
Related Posts
I'm experimenting with syntax in examples. I don't really like Rust's `assert(inc(1) == 2)` syntax, I find it a little distracting.
I'm trying `inc(1) //-> 2`. The comment is rendered differently, and there's nothing before the sample code. What do you think?
Copilot doesn't offer a way of disabling completion inside comments. People have discovered a comical workaround: swearing in the comment!
I've released difftastic 0.59! In this release:
* Fixed a nasty crash on textual files
* Added F# and device tree support
* Improved comment syntax highlighting (especially for Elm)


