Re: Is anything easier to do in java than in lisp?
RobertMaas_at_YahooGroups.Com
Date: 05/14/04
- Previous message: Liz: "Re: Java Validation"
- In reply to: Kenny Tilton: "Re: Is anything easier to do in java than in lisp?"
- Next in thread: André Thieme: "Re: Is anything easier to do in java than in lisp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 13 May 2004 22:43:56 -0800
> From: Kenny Tilton <ktilton@nyc.rr.com>
> The OP
(that's me)
> was wondering if anything was /actually/ easier in Java. That is
> cruel since Java is such a simple, powerless language, but c.l.l. is
> a hotbed of savagery and demonic ritual torture.
What, are you calling me cruel??
Anyway, so-far only three ideas have turned up:
- GUIs, which however are useless to me here on VT100 dialup into Unix shell.
- Applets, ditto, can't run applets in lynx.
- Network connections (sockets, TCP/IP, HTTP, cookies, etc.), aha some
application area where I might be able to write a program that I never
got around to doing in LISP because it would have required too much
effort.
Regarding the two directions of writing expressions that involve a
daisy chain (pipeline) of function/program calls, one way illustrated
by Unix pipeline notation or successive SETQs in interactive LISP
session, and the other illustrated by nested functional notation:
These may be compared to the two ways of solving a path-finding
problem, either starting from the starting pointing and hill-climbing
toward the goal, or backtracking from the goal trying to find the
starting point.
> "I live on what is left over after taxes are taken from the money I
> earn."
I need to live, on what? Expendable income.
live = use(expInc);
Error, expInc unbound variable.
But where does expendable income come from? Gross income minus taxes.
live = use(deducttaxes(grossIncome));
Error, grossIncome unbound variable.
But where does gross income come from? Earnings.
live = use(deducttaxes(wages(labor)))
Error, labor unbound variable.
How much did I work? 10 hours.
live = use(deducttaxes(wages(10)))
Horay, I can live 5 hours on that amount of income, oops!!
> Of course Hemingway would say, "Kenny earned money. They took out
> taxes. He lived on the rest. In the rain."
Kenny worked.
shell% kennyLabor
10 hours
Due to his work, Kenny earned money.
shell% kennyLabor | wageCalc
$150
They took out taxes.
shell% kennyLabor | wageCalc | taxDeduct
$47
He lived on the rest.
shell% kennyLabor | wageCalc | taxDeduct | liveInSFBayArea
5 hours
In the rain.
shell% kennyLabor | wageCalc | taxDeduct | liveInSFBayArea > /dev/null
P.S. IMO keyword arguments, as in CL, are a much better way to do
function/method overloading than having fixed combinations of argument
types as in java, both because you get 2**n possible combinations with
only n keywords whereas in java if you wanted all 2**n combos you'd
need to explicitly declare all 2**n different methods, and because it
doesn't matter if two or more different arguments are of the same time
you can *still* have one or the other in CL whereas in java it's
impossible to do that because there'd be ambiguity in the overloading
due to two forms having exactly the same number and types of arguments.
- Previous message: Liz: "Re: Java Validation"
- In reply to: Kenny Tilton: "Re: Is anything easier to do in java than in lisp?"
- Next in thread: André Thieme: "Re: Is anything easier to do in java than in lisp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|