Out of context on HN, it looks so. But in my experience, the original suggestion with the separate variables gets pretty hard to keep track of, and ends up making things more confusing. The `(?x)` or `/.../x` version makes it much easier to see things in their place and understand the overall pattern.
That's pretty neat, indeed I'd never heard of this, or maybe I had once but I'd forgotten about it if so. I might counter that in a very long regex you'd want to do the assembly in multiple steps, but I can definitely see the appeal of inline comments (perhaps in addition to something like that). I'll try to keep this in mind for the next time I'm dealing with regex. Thanks for sharing!
> If someone came out with a free, cross-platform, attractive text editor that was a native executable and got critical mass going with a plugin ecosystem, then VS Code would fall out of fashion within a year.
Well yeah, there's the problem. This isn't an easy task, it has never been done before.
It's been done with Vim and Emacs, among others. Full desktop GUI versions, in addition to the original terminal-based form.
It just hasn't been done RECENTLY... with an editor that is visually attractive, and uses modern keyboard conventions rather than arcane keystroke DSL's that are inaccessible for the masses. But that's just a matter of project philosophy, not technical limitations with what's doable.
Just like anything you can shop around and get a good deal.
In the UK I use glasses direct, you can pick up a pair with a prescription for £50. They regularly have discount codes so most of the time that would be £35/40. Sure they aren't designer but they look ok for the price if you don't want to spend a lot, if you use them just got driving you can probably get an even cheaper pair that don't look as good.
I've worn glasses since I was a kid, when you're entitled to a free frame from the cheaper range at Boots (a local retailer) (also, thanks, NHS). I remember struggling to find a design that I liked decent around that price range. As soon as you went out into the price ranges that weren't covered, you got a lot more nicer looking ones. At the time I was buying new frames and lenses every few years so I went with the cheap ones.
My current pair were about £30 from Aliexpress, a gorgeous rimless set with anti-glare lenses included. Needless to say I won't be buying from local retailers anymore.
I'm sure here in the UK we're also affected by the Luxottica monopoly in the US, especially when it comes to designer brands.