Our great sponsors
-
super-expressive
🦜 Super Expressive is a zero-dependency JavaScript library for building regular expressions in (almost) natural language
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
ck
Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures designed to aid in the research, design and implementation of high performance concurrent systems developed in C99+.
I'm familiar with standard (compact) regex syntax, but I've been using the above syntax recently in a couple small places. I'm a bit on the fence as to which is "better". The compact syntax is, of course, more compact. I think it's a very similar comparison between APL (which I've not used) and most other common programming languages.
One advantage of the expanded syntax is that it's a bit nicer to incorporate a string variable, e.g. "str some_string" vs. "/#{Regexp.escape(some_string)}/" (to borrow Ruby's syntax).
[1] https://github.com/ocaml/ocaml-re
https://github.com/VerbalExpressions/JSVerbalExpressions
Indeed they do, https://github.com/concurrencykit/ck
Related posts
- Eio 1.0 Release: Introducing a new Effects-Based I/O Library for OCaml
- OCaml: a Rust developer's first impressions
- Melody - A language that compiles to regular expressions and aims to be more easily readable and maintainable
- Multicore OCaml: September 2021, effect handlers will be in OCaml 5.0
- Multicore OCaml: April 2021