-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Hopefully we will get real pattern-matching at some point (https://github.com/tc39/proposal-pattern-matching), but I kinda sorta like this!
Sure, if you're validating some data there're loads of better ways to do it than a bunch of conditionals. I was purely commenting on the switch(true) pattern vs some "if"s.
That approach looks nice though. On that subject, JS has some nice libraries including io-ts[1] which has a functional approach using Eithers to encapsulate errors/success.
[1]: https://github.com/gcanti/io-ts
I've never considered writing a proposal for a language feature before, but after 2 minutes of googling, this actually looks completely doable:
https://github.com/tc39/ecma262/blob/master/CONTRIBUTING.md
So, impostor syndrome aside, why not? Wanna team up on that?