Talk:Function definition: Difference between revisions

m
(Lisp, Common Lisp, Intra-page)
 
(6 intermediate revisions by 2 users not shown)
Line 1:
"multiplication" is a somewhat ambiguous mathematical operation depending on the data type. I don't think it's a big deal, I am assuming that the arguments are supposed to be scalars and such, but in a vector language like IDL where one rarely encounters scalars, there is a distinction to be made between "product of the elements of the vectors" or "inner product of the vectors" or "outer product of the vectors" or "matrix multiplication". Just figured I'd mention this somewhere... [[User:Sgeier|Sgeier]] 19:08, 4 December 2007 (MST)
: I was just looking around, and I noticed it was ambiguous for another reason: It's commutative. A non-commutative operation might be more appropriate for scalar arguments. I'm not sure about other types such as vectors or functors. --[[User:Short Circuit|Short Circuit]] 02:46, 8 May 2009 (UTC)
 
== Lisp, BASIC ==
Line 8 ⟶ 9:
 
And of course, Scheme is ''not'' Lisp, but a separate (but similar) language, which BTW also has several dialects.
 
:: Out of curiosity: what is the distinguishing mark that makes you say that? I.e. what difference is "so big" or "so significant" that you would say "it is a different language" as opposed to "it is a dialect of the same language". I'm asking because I once had a professor that considered C and FORTRAN and similar imperative languages to be mere "algol dialects". [[User:Sgeier|Sgeier]] 18:03, 5 February 2010 (UTC)
 
Indeed, the example which I wrote (and which, not surprisingly, turns out to be identical to the Common Lisp example) should work in any Lisp.
Line 39 ⟶ 42:
 
:: Perhaps having the code example under Lisp would be appropriate if there was an intra-page link from Common Lisp pointing to it? --[[User:Short Circuit|Short Circuit]] 20:13, 2 March 2008 (MST)
 
== SNUSP, Falcon ==
 
I don't think either of these actually do what the task description asks for...[[User:Sgeier|Sgeier]] 18:04, 5 February 2010 (UTC)
Anonymous user