Re: OT: functional languages

2003-01-22 Thread David Z Maze
Eric E Moore <[EMAIL PROTECTED]> writes: > "Eric G. Miller" <[EMAIL PROTECTED]> writes: >> In C, statements are executed in order. I'm not too up on >> functional languages, but I seem to recall they need special syntax >> to execute statements sequentially. > > Not really. top level forms in a s

Re: OT: functional languages

2003-01-22 Thread Eric E Moore
"Eric G. Miller" <[EMAIL PROTECTED]> writes: > The C and Scheme functions are essentially identical. Well, one important difference is that the scheme standard requires that the language support an infinite number of tail calls. (define (countdown x) (cond ((<= 0 x) (write x) (newlin

Re: OT: functional languages

2003-01-20 Thread Eric G. Miller
On Mon, Jan 20, 2003 at 12:07:31PM -0500, David Z Maze wrote: > [EMAIL PROTECTED] (Robert Land) writes: > > On Fri, Dec 13, 2002 at 11:23:43AM -0500, Derrick 'dman' Hudson wrote: > >> "imperative" and "procedural" are the same thing, and C is a prime > >> example. It is such because the structure

Re: OT: functional languages

2003-01-20 Thread David Z Maze
[EMAIL PROTECTED] (Robert Land) writes: > On Fri, Dec 13, 2002 at 11:23:43AM -0500, Derrick 'dman' Hudson wrote: >> "imperative" and "procedural" are the same thing, and C is a prime >> example. It is such because the structure of a C program is a >> collection of procedures which start with "main

Re: OT: functional languages (was: Politics of Java)

2003-01-20 Thread Robert Land
On Fri, Dec 13, 2002 at 11:23:43AM -0500, Derrick 'dman' Hudson wrote: > On Fri, Dec 13, 2002 at 03:17:42PM +0100, martin f krafft wrote: > | also sprach Nori Heikkinen <[EMAIL PROTECTED]> [2002.12.13.1443 +0100]: > | > what do you mean by "functional"? even though i have quite limited > | > exper

Re: OT: functional languages (was: Politics of Java)

2002-12-16 Thread Pete Harlan
On Mon, Dec 16, 2002 at 02:17:05PM -0500, David Teague wrote: >... > Craig and others > > Having "undesirable" featuers such as maintaining state or having > dynamic scoping, does not make a language not be functional. The I'll agree to disagree on that semantic point. (You could say that you've

Re: OT: functional languages (was: Politics of Java)

2002-12-16 Thread David Teague
On Sun, 15 Dec 2002, Craig Dickson wrote: > Date: Sun, 15 Dec 2002 09:16:43 -0800 > From: Craig Dickson <[EMAIL PROTECTED]> > To: Debian Users <[EMAIL PROTECTED]> > Subject: Re: OT: functional languages (was: Politics of Java) > > Colin Watson wrote: > > > Y

Re: OT: functional languages (was: Politics of Java)

2002-12-15 Thread Craig Dickson
Colin Watson wrote: > You can pass function pointers around in C happily enough. I appreciate > it's less theoretically elegant than having functions as first-class > citizens, and that it doesn't allow as much compile-time checking, but > does it really limit you? Yes, it does. C function pointe

Re: OT: functional languages (was: Politics of Java)

2002-12-15 Thread Colin Watson
On Sat, Dec 14, 2002 at 06:32:43PM -0500, David Teague wrote: > On Fri, 13 Dec 2002, Deryk Barker wrote: > > After all, you *can* do FP in C or Pascal - it's just a lot more work. > > Pascal and C do not have functions as first class citizens, but Pascal > closer than C. In Pascal, but not C, you

Re: OT: functional languages (was: Politics of Java)

2002-12-14 Thread David Teague
On Fri, 13 Dec 2002, Deryk Barker wrote: > Date: Fri, 13 Dec 2002 20:40:29 -0800 > From: Deryk Barker <[EMAIL PROTECTED]> > To: Debian Users <[EMAIL PROTECTED]> > Subject: Re: OT: functional languages (was: Politics of Java) > Resent-Date: Fri, 13 Dec 2002 23:01:3

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Rob Weir
On Fri, Dec 13, 2002 at 02:29:13PM +0100, martin f krafft wrote: > because i stumbled upon this yesterday and couldn't find an answer... > > Haskell, Erlang and Clean are functional programming languages. > > Lisp is very similar in terms of the paradigm. > > Is Lisp a functional language? I th

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Deryk Barker
Thus spake Craig Dickson ([EMAIL PROTECTED]): > Pete Harlan wrote: > > > Lisp and Scheme are not functional languages. A functional languge is > > one that doesn't support mutating data; Lisp and Scheme very much do. > > I certainly agree about Lisp. With Scheme, it's a bit trickier, > especial

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Pete Harlan
On Fri, Dec 13, 2002 at 03:13:57PM -0800, Craig Dickson wrote: > Pete Harlan wrote: > > > Lisp and Scheme are not functional languages. A functional languge is > > one that doesn't support mutating data; Lisp and Scheme very much do. > > I certainly agree about Lisp. With Scheme, it's a bit tric

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Craig Dickson
Pete Harlan wrote: > Lisp and Scheme are not functional languages. A functional languge is > one that doesn't support mutating data; Lisp and Scheme very much do. I certainly agree about Lisp. With Scheme, it's a bit trickier, especially since the history is that Scheme was first invented to be

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Pete Harlan
On Fri, Dec 13, 2002 at 07:45:34AM -0800, Craig Dickson wrote: > Kirk Strauser wrote: > > > At 2002-12-13T14:52:51Z, Johann Spies <[EMAIL PROTECTED]> writes: > > > > > Yes. So is Ocaml and I think Scheme also. > > > > Since Scheme is a Lisp derivative, yes, it's also a functional language. > >

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Craig Dickson
Craig Dickson wrote: > Essentially, the definition of a functional language is that it is > based on lambda calculus or combinators, and Oops, forgot to go back and finish that sentence. Sorry! Functional languages are basically sugared lambda calculus or combinator logic. The sugar generally i

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Craig Dickson
Derrick 'dman' Hudson wrote: > "imperative" and "procedural" are the same thing, Well, not _exactly_. Procedural is a subset of imperative. One could trivially imagine an imperative language with no subroutines, which could hardly be called "procedural". In fact, MS-DOS's shell is such a language

Re: OT: functional languages

2002-12-13 Thread David Z Maze
martin f krafft <[EMAIL PROTECTED]> writes: > Haskell, Erlang and Clean are functional programming languages. > > Lisp is very similar in terms of the paradigm. > > Is Lisp a functional language? I believe so, yes; the opposite is "imperative language", a la BASIC, C, Java, Perl, etc. -- David M

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread martin f krafft
also sprach Craig Dickson <[EMAIL PROTECTED]> [2002.12.13.1647 +0100]: > Briefly, though, procedural languages are a subclass of imperative > languages. Pascal and C, for example, are procedural. Functional languages > are quite different. ok. that's what i thought actually. i am only mangling in

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread martin f krafft
also sprach Jörg Johannes <[EMAIL PROTECTED]> [2002.12.13.1525 +0100]: > GIMP uses Scheme for Script-Fu, plug-ins are written in C. I think what > Martin meant is described in an article in the german computer magazine > c't (www.heise.de/ct/; 2002/25 p. 242). I did not read the article very > c

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Derrick 'dman' Hudson
On Fri, Dec 13, 2002 at 03:17:42PM +0100, martin f krafft wrote: | also sprach Nori Heikkinen <[EMAIL PROTECTED]> [2002.12.13.1443 +0100]: | > what do you mean by "functional"? even though i have quite limited | > experience with it, i've certainly seen plugins for the GIMP and | > things written

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Craig Dickson
martin f krafft wrote: > while C is an imperative language, Erlang is a functional or > procedural language. (correct me if i am wrong, folks). it has no > loops, assignments, variables or whatever. > > Since Lisp is very similar, I was wondering if it's also "functional"... You're mangling thin

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Craig Dickson
Kirk Strauser wrote: > At 2002-12-13T14:52:51Z, Johann Spies <[EMAIL PROTECTED]> writes: > > > Yes. So is Ocaml and I think Scheme also. > > Since Scheme is a Lisp derivative, yes, it's also a functional language. Scheme is a functional language; but I hesitate to call Lisp "functional". In fa

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Kirk Strauser
At 2002-12-13T14:52:51Z, Johann Spies <[EMAIL PROTECTED]> writes: > Yes. So is Ocaml and I think Scheme also. Since Scheme is a Lisp derivative, yes, it's also a functional language. -- Kirk Strauser In Googlis non est, ergo non est. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a sub

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Johann Spies
On Fri, Dec 13, 2002 at 02:29:13PM +0100, martin f krafft wrote: > because i stumbled upon this yesterday and couldn't find an answer... > > Haskell, Erlang and Clean are functional programming languages. > > Lisp is very similar in terms of the paradigm. > > Is Lisp a functional language? > Ye

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Jörg Johannes
Nori Heikkinen schrieb: on Fri, 13 Dec 2002 02:29:13PM +0100, martin f krafft insinuated: because i stumbled upon this yesterday and couldn't find an answer... Haskell, Erlang and Clean are functional programming languages. Lisp is very similar in terms of the paradigm. Is Lisp a functional

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread martin f krafft
also sprach Nori Heikkinen <[EMAIL PROTECTED]> [2002.12.13.1443 +0100]: > what do you mean by "functional"? even though i have quite limited > experience with it, i've certainly seen plugins for the GIMP and > things written in it. Or maybe that was scheme. while C is an imperative language, Erl

Re: OT: functional languages (was: Politics of Java)

2002-12-13 Thread Nori Heikkinen
on Fri, 13 Dec 2002 02:29:13PM +0100, martin f krafft insinuated: > because i stumbled upon this yesterday and couldn't find an answer... > > Haskell, Erlang and Clean are functional programming languages. > > Lisp is very similar in terms of the paradigm. > > Is Lisp a functional language? wha

OT: functional languages (was: Politics of Java)

2002-12-13 Thread martin f krafft
because i stumbled upon this yesterday and couldn't find an answer... Haskell, Erlang and Clean are functional programming languages. Lisp is very similar in terms of the paradigm. Is Lisp a functional language? -- Please do not CC me! Get a proper mailer instead: www.mutt.org .''`. mar