Hacker News new | past | comments | ask | show | jobs | submit login

`(root (mean (square x)))`

Is this more readable?

`x ~> square . mean . root`

Where `~>` "sends" a value to a function `x ~> f := f(x)` and `.` is the "backwards" function composition `f . g := \x (g (f x))

I think I prefer the "backwards" notation ("root mean square"), but I can see the appeal of "square mean root"




I like having both notations at my disposal. For example, F#'s forward pipe operator[0], or pipes from a unix shell.

[0]https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: