Why does Elm support 'let' but not 'where'?

I think everyone’s seen that this has been proposed before, but just to provide an up-to-date summary:

where isn’t going to be implemented. The reasons are

  1. It’s redundant
  2. The let syntax is nice enough in our opinion
  3. If you want to change the order, you can make more top-level functions. Doing this will also make your functions shorter and easier to test.

I’m not sure there’s much else to discuss on this subject but I don’t know for sure so I won’t close this thread right now

8 Likes