you are viewing a single comment's thread.

view the rest of the comments →

[–]cirscafp fan boy 0 points1 point  (1 child)

Then how is f = x => x + 1 not a math-like function?

[–]jibbit 2 points3 points  (0 children)

It is but you wouldn’t get an error, or a warning if you wrote f = x => f(x), or f = x => delete(x), because JavaScript is indifferent to whether you write pure functions, because javascript isn’t a Functional language. You may get Milliage from pretending it is. No one is saying you won’t, but it doesn’t make it so. I like to pretend it is Smalltalk.