Talk:Extend your language: Difference between revisions

Criticizing double expansion of second condition
No edit summary
(Criticizing double expansion of second condition)
Line 28:
::::: Another area where Tcl can [http://tclxml.sourceforge.net/xmlgen/htmlgen.html do quite well]. :-) –[[User:Dkf|Donal Fellows]] 11:30, 28 August 2010 (UTC)
:::::: If you have an idea, how about posting a new task along that line? Then we might better understand the domain of tasks about "extending the language" --[[User:Abu|Abu]] 11:50, 28 August 2010 (UTC)
Some of the solutions that use macros (Clojure, Common Lisp, Scheme, other?) result in code where the second condition is expanded twice, and thus partially defy the purpose of the new language construct (see the task description: "the code generated by the compiler might be unnecessarily large"). Better solutions might involve direct function calls instead of macros, or variables to keep temporary results. --[[User:Abu|Abu]] 09:15, 31 December 2010 (UTC)
Anonymous user