Request wrappers for Hack

One of the most frustrating parts of using Hack is accessing user-provided data through the request based $_GET and $_POST super-globals. The problem being two-fold:

  • In partial mode, these aren’t typed. This means Hack assumes you know what you’re doing with the values, which can be bad.
  • In strict mode, the super globals aren’t available and result in undefined variable errors in the type checker.

That’s where my new package comes in.
Continue reading