Re: REPL in Lisp

Liste des GroupesRevenir à lang 
Sujet : Re: REPL in Lisp
De : jshem (at) *nospam* yaxenu.org (Julieta Shem)
Groupes : sci.lang comp.lang.lisp comp.lang.scheme
Suivi-à : comp.lang.lisp
Date : 12. Jul 2024, 23:12:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <875xta5n73.fsf@yaxenu.org>
References : 1 2 3 4
Follow-up to comp.lang.lisp.  Even though it doesn't even belong to
comp.lang.lisp, let's at least free other groups from this topic.  Or
provide me with better judgement.

Lawrence D'Oliveiro <ldo@nz.invalid> writes:

On Thu, 11 Jul 2024 12:57:12 -0000 (UTC), Antonio Marques wrote:
>
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
On Wed, 10 Jul 2024 19:11:17 -0700, HenHanna wrote:
 
the acronym (?)  REPL  must be new in Lisp   (and Scheme)
 
i'm sure i  never saw it (used or mentioned)   25  years ago.
 
There are many new terms coined for old concepts. Like “capture” for
“lexical binding”, or “dependency injection” for “callback”.
 
I can more or less see how callbacks can be used as a kind of dependency
injection, but those are separate concepts.
>
“Dependency injection” is just packaging up a bunch of callbacks as
methods in a class.

Why would you say ``packaging up''?  Can we look at Wikipedia?  (I'd
appreciate a good reference.  I don't know exactly where to look.)

  --8<-------------------------------------------------------->8---
  [...] dependency injection is a programming technique in which an
  object or function receives other objects or functions that it
  requires, as opposed to creating them internally. Dependency injection
  aims to separate the concerns of constructing objects and using them,
  leading to loosely coupled programs.[1][2][3] The pattern ensures that
  an object or function that wants to use a given service should not
  have to know how to construct those services. Instead, the receiving
  'client' (object or function) is provided with its dependencies by
  external code (an 'injector'), which it is not aware of. --Wikipedia
  --8<-------------------------------------------------------->8---

So I see why you're saying ``callback'' because the object or function
will call your procedures to get what it needs (instead of creating them
internally).  But why would say ``packaging up''?  (Couldn't I
``inject'' the ``dependencies'' by passing them all as arguments.)

I suppose ``packaging up'' would be appropriate if we pass in to a
procedure an object containing all the callbacks that you say.

Anyway, my interpretation of the Wikipedia article is merely
abstraction.  Nothing but abstraction.  I don't see why we need to call
it ``injection'' or even ``dependency'', even though the choice of words
isn't absurd.

(*) The source
 
  Dependency injection
  https://en.wikipedia.org/wiki/Dependency_injection

Date Sujet#  Auteur
11 Jul 24 * REPL in Lisp22HenHanna
11 Jul 24 +* Re: REPL in Lisp16Lawrence D'Oliveiro
11 Jul 24 i+- Re: REPL in Lisp1HenHanna
11 Jul 24 i+* Re: REPL in Lisp6Antonio Marques
11 Jul 24 ii`* Re: REPL in Lisp5Lawrence D'Oliveiro
12 Jul 24 ii +- Re: REPL in Lisp1Antonio Marques
12 Jul 24 ii `* Re: REPL in Lisp3Julieta Shem
13 Jul 24 ii  +- Re: REPL in Lisp1Antonio Marques
13 Jul 24 ii  `- Re: REPL in Lisp1Lawrence D'Oliveiro
11 Jul 24 i+* Re: REPL in Lisp2Julieta Shem
11 Jul 24 ii`- Re: REPL in Lisp1Antonio Marques
12 Jul 24 i`* Re: REPL in Lisp6Kaz Kylheku
13 Jul 24 i `* Re: REPL in Lisp5Aidan Kehoe
13 Jul 24 i  +* Re: REPL in Lisp3Athel Cornish-Bowden
13 Jul 24 i  i`* Re: REPL in Lisp2Aidan Kehoe
13 Jul 24 i  i `- Re: REPL in Lisp1Athel Cornish-Bowden
14 Jul 24 i  `- Re: REPL in Lisp1George Neuner
11 Jul 24 +* Re: REPL in Lisp2yeti
11 Jul 24 i`- Re: REPL in Lisp1HenHanna
11 Jul 24 +* Re: REPL in Lisp2Paul Rubin
11 Jul 24 i`- Re: REPL in Lisp1Kaz Kylheku
12 Jul 24 `- Re: REPL in Lisp1George Neuner

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal