> On 04 Jun 2006, at 01:39 , Richard A Clarke wrote:
>> What do you use newLISP for? What are its advantages over, say, PHP
>> or perl?
>
> (((Lots) more) Parenthesis)
>
> :)
>
> Lisp is the perl for the people who never learned perl. It's good at
> processing text, but not as good as perl. Some people claim it is
> more understandable, which would not be hard as perl's syntax is
> obtuse at times.
>
> Personally, I like php, but perl is better at text handling.
>
> Here's what newLisp code looks like:
>
> <http://www.newlisp.org/syntax.cgi?mandelbrot.txt>
>
> and its output:
>
> <http://www.newlisp.org/mandelbrot.cgi>
>
> (See what I mean (about the parentheses?))
>
> Personally, my brain does not parse (set 'r-half (/ rows 2) 'c-half
> (/ cols 2)) correctly, so I am better off with php or perl
>
> (that lines means, I think, set r-half = rows / 2; set c-half =
> cols / 2; )
I don't seem to have newlisp on my machine -- did you have to install it?
I've been programming perl for 5 years now, and I understand why people love
it -- here's my $0.02 on what a few languages are good for:
perl -- incredibly powerful text processor; quite terse, uses symbols
instead of words for many things, allowing you to write complex code in just
a few lines; very easy data structures and can quickly grind up very large
texts (search, replace, count, split,etc); no typing (int, double, char,
etc) required, and auto-vivification of structures, e.g. the first line
could be $data{"Bryan"}{"age"} = 31; also very forgiving of syntax
(sometimes *too* forgiving!); it's also very fast; the downside is that it
can be hard to read other people's code ("write-only language")
php -- great for web pages because the code is the exception in the file
instead of the rule; everything in the .php file is output directly except
for stuff within these tags <?php ... ?> is executed; somewhat wordier
than perl, and has some weird special cases that I haven't gotten used to
yet
applescript -- very wordy and not terribly robust; interfaces nicely with OS
X apps, though, so if you need to drive data through one or more OS X apps,
applescript is probably your best bet
visual basic for applications (vba) -- similar to applescript, though less
wordy, and is object oriented from the start; drives Microsoft apps,
otherwise I never use it
- B
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>