Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Lisp syntax and Tcl
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sarnold  
View profile  
 More options Aug 20 2009, 3:17 pm
Newsgroups: comp.lang.tcl
From: sarnold <stephanearn...@yahoo.fr>
Date: Thu, 20 Aug 2009 12:17:07 -0700 (PDT)
Local: Thurs, Aug 20 2009 3:17 pm
Subject: Lisp syntax and Tcl
Hello

The syntax of Tcl is often criticized as being "strange", which is not
fair in my opinion.
But I understand that programmers coming from other languages do not
catch the syntax very fast... as it was my case, too :-(.

Could we help those beginners by writing a converter from a Lisp-like
syntax to regular Tcl syntax?
I am really willing to help those who do not catch the spirit of Tcl
and give them the opportunity to learn softly our favorite scripting
language.

Regards
Stephane


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald W. Lester  
View profile  
 More options Aug 20 2009, 3:25 pm
Newsgroups: comp.lang.tcl
From: "Gerald W. Lester" <Gerald.Les...@cox.net>
Date: Thu, 20 Aug 2009 14:25:43 -0500
Local: Thurs, Aug 20 2009 3:25 pm
Subject: Re: Lisp syntax and Tcl

sarnold wrote:
> Hello

> The syntax of Tcl is often criticized as being "strange", which is not
> fair in my opinion.
> But I understand that programmers coming from other languages do not
> catch the syntax very fast... as it was my case, too :-(.

> Could we help those beginners by writing a converter from a Lisp-like
> syntax to regular Tcl syntax?
> I am really willing to help those who do not catch the spirit of Tcl
> and give them the opportunity to learn softly our favorite scripting
> language.

I suspect most programmers, even CS grads, find Lisp-like syntax a little
(or a lot) strange.

Most would be more comfortable with an Algol-like descended language syntax
(eg Java/C/C#/VB).

That being said -- have fun with the converter!

--
+------------------------------------------------------------------------+
| Gerald W. Lester                                                       |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Heller  
View profile  
 More options Aug 20 2009, 4:07 pm
Newsgroups: comp.lang.tcl
From: Robert Heller <hel...@deepsoft.com>
Date: Thu, 20 Aug 2009 15:07:24 -0500
Local: Thurs, Aug 20 2009 4:07 pm
Subject: Re: Lisp syntax and Tcl
At Thu, 20 Aug 2009 12:17:07 -0700 (PDT) sarnold <stephanearn...@yahoo.fr> wrote:

> Hello

> The syntax of Tcl is often criticized as being "strange", which is not
> fair in my opinion.
> But I understand that programmers coming from other languages do not
> catch the syntax very fast... as it was my case, too :-(.

> Could we help those beginners by writing a converter from a Lisp-like
> syntax to regular Tcl syntax?
> I am really willing to help those who do not catch the spirit of Tcl
> and give them the opportunity to learn softly our favorite scripting
> language.

Tcl and LISP actually have very similar syntax -- both are prefix
languages (except Tcl 'cheats' -- the expr syntax is infix, just like
C).

Both Tcl and LISP treat data and code the same.  Data can be code and
code can be data (in Tcl, 'everything is a string', in LISP 'everything
is a list').

Someone who is used to LISP's idiosyncrasies, should be pretty much
at home with Tcl, more so that someone from the 'Algol'
(Pascal/C/C++/Java/JavaScript/C#) or FORTRAN (BASIC) worlds.

> Regards
> Stephane

--
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Aug 21 2009, 4:47 am
Newsgroups: comp.lang.tcl
From: Arjen Markus <arjen.markus...@gmail.com>
Date: Fri, 21 Aug 2009 01:47:47 -0700 (PDT)
Local: Fri, Aug 21 2009 4:47 am
Subject: Re: Lisp syntax and Tcl
On 20 aug, 22:07, Robert Heller <hel...@deepsoft.com> wrote:

I wish I remembered what I found strange about Tcl's syntax ... Or
even
if I did find it strange (coming from an Algol/Fortran/C background -
in that chronological order).

What I do find strange is that Tcl is critized for its syntax. Apart
from
the absence of an assignment a la x = y, that may be seen as strange
(but that
is a semantical difference rather than a syntactical one - and
actually
goes very deep, an altogether different topic), what is strange?

Compare:

   puts [lindex $list 0]

and

   printf( "%s\n", list[0] );

Or the C++ "equivalent":

   cout << list.get(0);

To help newcomers with Tcl's perceived strange syntax, we need to know
what they find strange.

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dkf  
View profile  
 More options Aug 21 2009, 5:47 am
Newsgroups: comp.lang.tcl
From: dkf <donal.k.fell...@man.ac.uk>
Date: Fri, 21 Aug 2009 02:47:22 -0700 (PDT)
Local: Fri, Aug 21 2009 5:47 am
Subject: Re: Lisp syntax and Tcl
On 20 Aug, 21:07, Robert Heller <hel...@deepsoft.com> wrote:

> Tcl and LISP actually have very similar syntax -- both are prefix
> languages (except Tcl 'cheats' -- the expr syntax is infix, just like
> C).

With 8.5, there's a prefix syntax for arithmetic (functions in
the ::tcl::mathfunc namespace, operators in the ::tcl::mathop
namespace) if you prefer; they make some things much easier. And
there's no reason in principle why Lisp couldn't use a special form
for arithmetic expressions; the Lisp world just chooses not to.

> Both Tcl and LISP treat data and code the same.  Data can be code and
> code can be data (in Tcl, 'everything is a string', in LISP 'everything
> is a list').

Everything is a list or an atom. Common Lisp also has arrays, which,
while simulatable with lists, are hard to replicate the performance
characteristics of
with classic Lisp; computers are very good at doing arrays...

Which is a bit off-topic for c.l.t I suppose. ;-)

Donal.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ddd  
View profile  
 More options Aug 21 2009, 9:18 am
Newsgroups: comp.lang.tcl
From: ddd <d...@ddd.dd>
Date: 21 Aug 2009 13:18:18 GMT
Local: Fri, Aug 21 2009 9:18 am
Subject: Re: Lisp syntax and Tcl
On Thu, 20 Aug 2009 12:17:07 -0700 (PDT), sarnold <stephanearn...@yahoo.fr>
wrote:

> Hello

> The syntax of Tcl is often criticized as being "strange", which is not
> fair in my opinion.
> But I understand that programmers coming from other languages do not
> catch the syntax very fast... as it was my case, too :-(.

> Could we help those beginners by writing a converter from a Lisp-like
> syntax to regular Tcl syntax?
> I am really willing to help those who do not catch the spirit of Tcl
> and give them the opportunity to learn softly our favorite scripting
> language.

> Regards
> Stephane

That is a great idea!  Lisp and TCL share a lot.  While Lisp (and especially
Common Lisp) has a lot of extra features like arrays and streams, TCL has TK.
I really would like to try that.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Chambers  
View profile  
 More options Aug 22 2009, 2:18 pm
Newsgroups: comp.lang.tcl
From: Andy Chambers <achambers.h...@googlemail.com>
Date: Sat, 22 Aug 2009 11:18:47 -0700 (PDT)
Local: Sat, Aug 22 2009 2:18 pm
Subject: Re: Lisp syntax and Tcl
On 21 Aug, 14:18, ddd <d...@ddd.dd> wrote:

> TCL has TK.

Ah but so does common lisp: http://github.com/cddr/celtk/tree/master
:-)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rfoxmich  
View profile  
 More options Aug 24 2009, 4:14 am
Newsgroups: comp.lang.tcl
From: rfoxmich <rfoxke...@gmail.com>
Date: Mon, 24 Aug 2009 01:14:09 -0700 (PDT)
Local: Mon, Aug 24 2009 4:14 am
Subject: Re: Lisp syntax and Tcl
On Aug 22, 2:18 pm, Andy Chambers <achambers.h...@googlemail.com>
wrote:

> On 21 Aug, 14:18, ddd <d...@ddd.dd> wrote:

> > TCL has TK.

> Ah but so does common lisp:http://github.com/cddr/celtk/tree/master
> :-)

Tcl syntax is considered strange but

(? (considered (not (strange lisp))))

I don't get it _sigh_


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Aug 24 2009, 4:28 am
Newsgroups: comp.lang.tcl
From: Arjen Markus <arjen.markus...@gmail.com>
Date: Mon, 24 Aug 2009 01:28:53 -0700 (PDT)
Local: Mon, Aug 24 2009 4:28 am
Subject: Re: Lisp syntax and Tcl
On 24 aug, 10:14, rfoxmich <rfoxke...@gmail.com> wrote:

> On Aug 22, 2:18 pm, Andy Chambers <achambers.h...@googlemail.com>
> wrote:

> > On 21 Aug, 14:18, ddd <d...@ddd.dd> wrote:

> > > TCL has TK.

> > Ah but so does common lisp:http://github.com/cddr/celtk/tree/master
> > :-)

> Tcl syntax is considered strange but

> (? (considered (not (strange lisp))))

> I don't get it _sigh_

Looks like correct Lisp to me ... but that probably means I do not get
it either.

Or perhaps this:
- Lisp is a demigod among programming languages and is beyond
criticism.
- Tcl is a pariah because mr. Stallman says it should not be used.

The somewhat bizarre social processes among programmers of all sorts
cause
the (ir)rational arguments of the past to flourish without
reconsideration.

Strange, very strange, as the programmers' community has a very
strong
tendency not to be interested in its own history and the achievements
of
the past ...

Regards,

Arjen (being a trifle cynical perhaps - but then it is a monday
morning)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »