It's nice not having to work backwards:
"Take the string, then do x to it, then do y to it"
instead of
"Take the result doing z to the result of doing y to the result of doing x to the string".
I once wrote something to let you do this in Python:
def incd(x, by=1): return x + by print('7 ==', fv(1).incd().incd(2).incd(by=3)) #=> 7 == 7
Python had the idea that methods are just functions (hence having an explicit self parameter), it just didn't take it far enough.
self
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's nice not having to work backwards:
instead of
I once wrote something to let you do this in Python:
Python had the idea that methods are just functions (hence having an explicit
self
parameter), it just didn't take it far enough.