Exceptions and types in FQL

During a refactor of a web app with some pretty large FQL queries, I decided I wanted to augment my FQL with the following:

  • Error info (including stack traces) that line up with the names of the functions used to compose the queries in JS
  • Exception catching
  • Types

I came up with this which, despite the overhead, works for the time being. I would love, however, if FQL introduced a native exception and type system. I pretty much want to do exactly what this package enables me to do, but better.

Ewan Edwards encouraged me to create a topic here. Any other users have similar interests or solutions?