Talk:Currying: Difference between revisions

(Just say no.)
(→‎What is the task?: new section)
 
Line 36:
 
: RC missed the boat in the license switchover. RC is also fixed at GFDL v1.2, as opposed to more recent versions. This is because I cannot arbitrarily switch the license; there's been no copyright assignment (and such a thing isn't possible in Europe, anyway), so I can't simply do whatever I wish with the code. What's important is right at the bottom of the form I'm filling: "Please note that all contributions to Rosetta Code are considered to be released under the GNU Free Documentation License 1.2 (see Rosetta Code:Copyrights for details) ... You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!". It is not permissible to simply copy code from other resources without the consent of the original author, except in the nebulous region of 'fair use'. It's easy to make arguments for and against the idea that copying code snippets to RC from other places qualifies as 'fair use', but I'm of the opinion that it probably should **not** be done. RC is a sole proprietorship, and, frankly, *I'm* the guy on the hook for all 800-odd megabytes of content on the site if I don't do things properly. When in doubt, reimplement. --[[User:Short Circuit|Michael Mol]] ([[User talk:Short Circuit|talk]]) 03:19, 3 April 2013 (UTC)
 
== What is the task? ==
 
What does it mean to demonstrate an "example of Currying"? A few languages have syntax that makes it easy to write curried functions, e.g. Haskell, OCaml, Standard ML, etc. where the normal way to write "multi-parameter functions" actually defines curried functions. Obviously in this case you could show how it is used.
 
The vast majority of languages do not have such syntax. It is unclear then what the task is asking for. Many solutions write a function that takes a function and some arguments and partially applies them (i.e. returns a function that takes the remaining arguments). That seems like a duplicate of [[Partial function application]]. Some other solutions simply write a partially-applied function. This mix of solutions makes it really confusing. --[[User:Spoon!|Spoon!]] ([[User talk:Spoon!|talk]]) 08:41, 11 April 2013 (UTC)
Anonymous user