When designing Grain, we really embraced the idea of Grain being a modern web staple. All puns aside, we thought a lot about how developers write for the web today, and what matters the most to them. Here’s what we thought were some of the most important:
Being functional, but flexible. Functional programming makes it easy to reason about many programs, but it isn’t always the tool that makes the most sense for the task at hand. It should be farily easy to express oneself in a different style.
Playing nicely with others. We often use many tools together, so it’s important that they don’t get in each other’s way.
Achieving full type safety with none of the fuss. It’s 2018, so we shouldn’t still be dealing with runtime exceptions, and we shouldn’t have to write out explicit types for things to achieve that either.
Embracing new web standards to push us all forward. We now have the freedom to have any language run natively in the browser,%2