Timeline for What should a member function be called that applies an argument function to the object?
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 19, 2020 at 6:00 | history | tweeted | twitter.com/StackSoftEng/status/1240518552135794696 | ||
| Mar 12, 2020 at 18:13 | comment | added | Sopel | callWithThis, passInto. But it seems like an unnecessary indirection and against OO principles. fkt(fktArgObj) just does the trick. Just like we don't do number.passInto(negate). | |
| Mar 12, 2020 at 7:38 | comment | added | kutschkem | @FilipMilovanović For the sake of my fellow programmers I probably shouldn't have such a method in the first place :-P I am writing a code generator and thought having such a method in my generated code would make the generator easier in other places. I ended up not needing it. Still I am not sure how such a general method should be called. | |
| Mar 11, 2020 at 21:04 | answer | added | Steve | timeline score: 1 | |
| Mar 11, 2020 at 18:31 | comment | added | Filip Milovanović | Please, for the sake of your fellow programmers :) , don't automatically name the method "map" every time you pass in a function - see my comment to the accepted answer. | |
| Mar 11, 2020 at 17:22 | vote | accept | kutschkem | ||
| Mar 11, 2020 at 17:17 | answer | added | xtratic | timeline score: 2 | |
| Mar 11, 2020 at 11:53 | answer | added | jk. | timeline score: -3 | |
| Mar 11, 2020 at 11:50 | review | Close votes | |||
| Mar 19, 2020 at 3:05 | |||||
| Mar 11, 2020 at 11:32 | history | asked | kutschkem | CC BY-SA 4.0 |