Re: Is anything easier to do in java than in lisp?
From: Thomas F. Bur*** (tfb_at_famine.OCF.Berkeley.EDU)
Date: 05/09/04
- Next message: Ari Johnson: "Re: Is anything easier to do in java than in lisp?"
- Previous message: Frank A. Adrian: "Re: Modernizing Common Lisp"
- In reply to: Antonio Menezes Leitao: "Re: Is anything easier to do in java than in lisp?"
- Next in thread: Ari Johnson: "Re: Is anything easier to do in java than in lisp?"
- Reply: Ari Johnson: "Re: Is anything easier to do in java than in lisp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 09 May 2004 11:30:38 -0700
Antonio Menezes Leitao <Antonio.Leitao@evaluator.pt> writes:
> On Sat, 08 May 2004 19:38:34 -0800, RobertMaas wrote:
>
> > Suppose you want to find the first or last occurrance of some name,
> > ignoring case. In CL it's trivial:
> > (search "robert" "Hi, this is Robert Maas here" :test #'char-equal) how
> > would you do that in java except by writing your own nested loop from
> > scratch?? How come the java API doesn't already include this??
>
> My guess: because they were targeting C++ programmers. Is there a
> standard C++ function that does that?
Yep, the STL `search' function can take a BinaryPredicate. I think
they were looking in CL's direction when they came up with this one.
Now, it's possible that Java was targeting the C++ programmers who
would have written their own loop, anyway...
--
/|_ .-----------------------.
,' .\ / | No to Imperialist war |
,--' _,' | Wage class war! |
/ / `-----------------------'
( -. |
| ) |
(`-. '--.)
`. )----'
- Next message: Ari Johnson: "Re: Is anything easier to do in java than in lisp?"
- Previous message: Frank A. Adrian: "Re: Modernizing Common Lisp"
- In reply to: Antonio Menezes Leitao: "Re: Is anything easier to do in java than in lisp?"
- Next in thread: Ari Johnson: "Re: Is anything easier to do in java than in lisp?"
- Reply: Ari Johnson: "Re: Is anything easier to do in java than in lisp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]