Hacker News new | ask | show | jobs
by baq 996 days ago

  > "Hello, World!".splitWithDelimiters
  >      ("\\pP\\s\*", -1)
  >  // ["Hello", ", ", "World", "!", ""]
> Meh

My brain just melted.

1 comments

I'd have a lot of uses for that. But also worry about it enabling more stringly-typed code.