Timeline for What is the functional-programming alternative to an interface?
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 18, 2023 at 21:00 | history | tweeted | twitter.com/StackSoftEng/status/1615816307550584833 | ||
Jan 18, 2023 at 15:23 | answer | added | sepehr | timeline score: 0 | |
Aug 7, 2013 at 16:40 | vote | accept | Ðаn | ||
Aug 6, 2013 at 20:44 | comment | added | mlvljr | Make it simple: a struct containing those method pointers, plus a function to initialize it from an object instance. Why Haskell? ;) | |
Aug 6, 2013 at 3:04 | history | edited | Jimmy Hoffa |
edited tags
|
|
Mar 4, 2013 at 18:59 | history | edited | Ðаn | CC BY-SA 3.0 |
added 105 characters in body
|
Mar 4, 2013 at 16:25 | answer | added | hugomg | timeline score: 1 | |
Mar 4, 2013 at 7:02 | answer | added | dan_waterworth | timeline score: 9 | |
Mar 4, 2013 at 5:22 | comment | added | Job | The answer would be language-dependent. In Clojure you can use clojure.org/protocols, where the only soft area is the types of parameters that the functions must operate on - they are an object - that is all you know. | |
Mar 4, 2013 at 3:52 | history | edited | Ðаn | CC BY-SA 3.0 |
added 5 characters in body
|
Mar 4, 2013 at 3:33 | history | edited | Ðаn | CC BY-SA 3.0 |
more details about my question
|
Mar 3, 2013 at 16:06 | answer | added | ipaul | timeline score: 0 | |
Mar 3, 2013 at 5:08 | answer | added | daniel gratzer | timeline score: 5 | |
Mar 3, 2013 at 4:53 | comment | added | Jimmy Hoffa | After rereading your question, I'm curious what specific functionality you're trying to accomplish? What you appear to be asking for is how to do oo style side-effectful programmin against an instance in a functional style, which doesn't make sense.. | |
Mar 3, 2013 at 4:41 | answer | added | Jimmy Hoffa | timeline score: 11 | |
Mar 3, 2013 at 4:37 | comment | added | user16764 | Chapter 2 of the SICP is pretty much about this. | |
Mar 3, 2013 at 4:28 | history | edited | Ðаn | CC BY-SA 3.0 |
added 127 characters in body
|
Mar 3, 2013 at 4:21 | comment | added | Telastyn | You wouldn't. Interfaces for datatypes are perfectly fine (though you would favor immutable objects). | |
Mar 3, 2013 at 4:17 | history | asked | Ðаn | CC BY-SA 3.0 |