Talk:Vector products: Difference between revisions

→‎"create" ...: new section
(Don't get too hung up over the word itself)
(→‎"create" ...: new section)
Line 9:
: FWIW, when someone asks for a function I'm usually happy to give a procedure in any Tcl solution I write. (Occasionally, I'll make it into a full function if the problem is particularly mathematical – there's a small technical distinction to Tcl programmers – but the difference is really slight.) The key distinction is that it is named, reasonably encapsulated, takes arguments and produces a result (or results). Most programming (and all practical ones) are happy with doing something that matches this. ([[Brainf***]], [[SNUSP]] and [[Piet]]… well would you write a big app in them? Really?)
: WRT “relinkable code”, that makes me think of “library”, which is really the next major level of organization up. I'd be surprised at someone using a shared library like this; it would be so slow, and as fragile as the overlay mechanism that used to exist in old DOS programs back when “640kB was enough for anybody” (except it wasn't). Let's not encourage anyone to go there; it was ''very'' painful. –[[User:Dkf|Donal Fellows]] 22:19, 10 April 2011 (UTC)
 
== "create" ... ==
 
IDL has builtins for most of these, or at the most would come to something like <tt>total(a*b)</tt>. Would it be acceptable to just show how this would be done there or do you really want me to "create a function" that merely returns the result of a one-liner?
Anonymous user