Talk:Add a variable to a class instance at runtime: Difference between revisions

Content added Content deleted
(→‎What's exactly monkeypatching?: Does it matter? if It's right in its qualified context.)
(Cleaning up this task's description is hard, and we can find another interesting potential task in the originating/descriptive document)
Line 16: Line 16:


The page title and task description seem to accurately describe what is needed to complete the task. The use of the word "monkeypatching" is qualified by the use of the phrase "by Pythonistas and some others". This may not be how Monkey patching can be applied in other dynamic languages but the task descriptions use of the qualifier seems to me to make it OK? --[[User:Paddy3118|Paddy3118]] 06:52, 5 January 2010 (UTC)
The page title and task description seem to accurately describe what is needed to complete the task. The use of the word "monkeypatching" is qualified by the use of the phrase "by Pythonistas and some others". This may not be how Monkey patching can be applied in other dynamic languages but the task descriptions use of the qualifier seems to me to make it OK? --[[User:Paddy3118|Paddy3118]] 06:52, 5 January 2010 (UTC)

Hmm, it seems that there's a lot of disagreement of what is actually meant. Meh. (I can patch my objects and classes any way I want; I'll let others worry about theirs.)

On the other hand, the task actually described in the article that the task points at is rather interesting in itself, as it involves (in effect) runtime class synthesis based on the header row from a CSV file, followed by filling in the fields for a list of instances of that synthetic class from the remaining rows. Oh, and the synthesized class name is derived from the argument filename too. Probably outside what a standard compiled language/class system can do (and would require interesting bytecode generation for some [[Java]] or [[C sharp|C#]]). Would probably be better done as another task though. –[[User:Dkf|Donal Fellows]] 11:06, 5 January 2010 (UTC)