purescript-web / purescript-web-cssom-view

MIT License
5 stars 2 forks source link

Suggestion: Use object-last argument ordering #8

Closed garyb closed 1 year ago

garyb commented 1 year ago

This works better for composition and is more idiomatic for PS code in general (for the same reason).

Taking matchMedia, for example, if Window came last it means you can use it like:

Window. matchMedia "..."  =<< HTML.window 

(Or whichever direction you prefer to compose)