Re: Why Python When There Is Perl?

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Why Python When There Is Perl?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacy
Date : 22. Mar 2024, 04:06:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utip2g$2i1dd$3@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On 22 Mar 2024 01:43:02 GMT, rbowman wrote:

As I worked through the exercises I was mentally
calculating how I would do it in C.

C doesn’t put call frames on the heap, or even allow nested functions
(as standard), so I don’t know how you would handle closures.

If you want to talk about lexical oddities, there's the 73 stacked up
parens.

I keep them straight by indentation, e.g.

(defun convert-to-region-codes (beg end)
    "converts alphabetic characters in the selection to “region indicator symbols”."
    (interactive "*r")
    (unless (use-region-p)
        (ding)
        (keyboard-quit)
    ) ; unless
    (let
        (
            deactivate-mark
            (intext (delete-and-extract-region beg end))
            c
        )
        (dotimes (i (- end beg))
            (setq c (elt intext i))
            (cond
                ((and (>= c ?A) (<= c ?Z))
                    (setq c (+ (- c ?A) #x1F1E6))
                )
                ((and (>= c ?a) (<= c ?z))
                    (setq c (+ (- c ?a) #x1F1E6))
                )
            ) ; cond
            (insert-char c)
        ) ; dotimes
    ) ; let
) ; convert-to-region-codes

What makes this sort of idiosyncrasy worthwhile is a thing called
“homoiconicity”. It’s a pretty cool feature, though not obvious at
first sight.

I shouldn't be so snotty.

No problem. Your impressions are all too common among those new to
Lisp.

After all I used Forth back in the day and threaded interpreted
languages are a wonder to behold.

Now there is something that is nowadays only fit to be in a museum ...

Date Sujet#  Auteur
19 Mar 24 * Why Python When There Is Perl?308Lester Thorpe
20 Mar 24 +* Re: Why Python When There Is Perl?10Lawrence D'Oliveiro
20 Mar 24 i+* Re: Why Python When There Is Perl?2rbowman
20 Mar 24 ii`- Re: Why Python When There Is Perl?1Lawrence D'Oliveiro
20 Mar 24 i`* Re: Why Python When There Is Perl?7Nuxxie
20 Mar 24 i +* Re: Why Python When There Is Perl?2Chris Ahlstrom
21 Mar 24 i i`- Re: Why Python When There Is Perl?1rbowman
21 Mar 24 i `* Re: Why Python When There Is Perl?4rbowman
21 Mar 24 i  `* Re: Why Python When There Is Perl?3Lawrence D'Oliveiro
21 Mar 24 i   `* Re: Why Python When There Is Perl?2Lawrence D'Oliveiro
22 Mar 24 i    `- Re: Why Python When There Is Perl?1rbowman
20 Mar 24 `* Re: Why Python When There Is Perl?297Physfitfreak
20 Mar 24  +- Re: Why Python When There Is Perl?1rbowman
20 Mar 24  +* Re: Why Python When There Is Perl?4DFS
20 Mar 24  i`* Re: Why Python When There Is Perl?3rbowman
21 Mar 24  i `* Re: Why Python When There Is Perl?2DFS
21 Mar 24  i  `- Re: Why Python When There Is Perl?1rbowman
20 Mar 24  +* Re: Why Python When There Is Perl?202Nuxxie
21 Mar 24  i+* Re: Why Python When There Is Perl?194Physfitfreak
21 Mar 24  ii+- Re: Why Python When There Is Perl?1DFS
21 Mar 24  ii+- Re: Why Python When There Is Perl?1DFS
21 Mar 24  ii`* Re: Why Python When There Is Perl?191Farley Flud
21 Mar 24  ii +- Re: Why Python When There Is Perl?1Lawrence D'Oliveiro
22 Mar 24  ii +* Re: Why Python When There Is Perl?187Physfitfreak
22 Mar 24  ii i+* Re: Why Python When There Is Perl?2Lawrence D'Oliveiro
22 Mar 24  ii ii`- Re: Why Python When There Is Perl?1Physfitfreak
22 Mar 24  ii i+* Re: Why Python When There Is Perl?12Farley Flud
22 Mar 24  ii ii`* Re: Why Python When There Is Perl?11DFS
22 Mar 24  ii ii +* Re: Why Python When There Is Perl?7rbowman
22 Mar 24  ii ii i`* Re: Why Python When There Is Perl?6DFS
23 Mar 24  ii ii i `* Re: Why Python When There Is Perl?5rbowman
23 Mar 24  ii ii i  `* Re: Why Python When There Is Perl?4Lawrence D'Oliveiro
23 Mar 24  ii ii i   `* Re: Why Python When There Is Perl?3rbowman
23 Mar 24  ii ii i    `* Re: Why Python When There Is Perl?2Lawrence D'Oliveiro
23 Mar 24  ii ii i     `- Re: Why Python When There Is Perl?1rbowman
24 Mar 24  ii ii `* Re: Why Python When There Is Perl?3Stéphane CARPENTIER
24 Mar 24  ii ii  `* Re: Why Python When There Is Perl?2DFS
24 Mar 24  ii ii   `- Re: Why Python When There Is Perl?1rbowman
22 Mar 24  ii i+* Re: Why Python When There Is Perl?169Farley Flud
23 Mar 24  ii ii`* Re: Why Python When There Is Perl?168Physfitfreak
23 Mar 24  ii ii +* Re: Why Python When There Is Perl?6Physfitfreak
23 Mar 24  ii ii i`* Re: Why Python When There Is Perl?5Physfitfreak
24 Mar 24  ii ii i `* Re: Why Python When There Is Perl?4Lawrence D'Oliveiro
24 Mar 24  ii ii i  `* Re: Why Python When There Is Perl?3Physfitfreak
24 Mar 24  ii ii i   +- Re: Why Python When There Is Perl?1Physfitfreak
24 Mar 24  ii ii i   `- Re: Why Python When There Is Perl?1rbowman
23 Mar 24  ii ii +* Re: Why Python When There Is Perl?160Farley Flud
23 Mar 24  ii ii i+- Re: Why Python When There Is Perl?1DFS
23 Mar 24  ii ii i+* Re: Why Python When There Is Perl?113rbowman
24 Mar 24  ii ii ii`* Re: Why Python When There Is Perl?112Physfitfreak
24 Mar 24  ii ii ii `* Re: Why Python When There Is Perl?111rbowman
25 Mar 24  ii ii ii  `* Re: Why Python When There Is Perl?110Physfitfreak
25 Mar 24  ii ii ii   +* Re: Why Python When There Is Perl?102rbowman
25 Mar 24  ii ii ii   i+- I control Afghanistan; they do what I say, when I say.1Relf
26 Mar 24  ii ii ii   i`* Re: Why Python When There Is Perl?100Physfitfreak
26 Mar 24  ii ii ii   i +* Re: Why Python When There Is Perl?98Physfitfreak
26 Mar 24  ii ii ii   i i+* Re: Why Python When There Is Perl?9Physfitfreak
2 Apr 24  ii ii ii   i ii`* Re: Why Python When There Is Perl?8Lawrence D'Oliveiro
2 Apr 24  ii ii ii   i ii `* Re: Why Python When There Is Perl?7rbowman
2 Apr 24  ii ii ii   i ii  +* Re: Why Python When There Is Perl?4Physfitfreak
3 Apr 24  ii ii ii   i ii  i`* Re: Why Python When There Is Perl?3rbowman
3 Apr 24  ii ii ii   i ii  i `* Re: Why Python When There Is Perl?2Physfitfreak
3 Apr 24  ii ii ii   i ii  i  `- Re: Why Python When There Is Perl?1Physfitfreak
6 Apr 24  ii ii ii   i ii  `* Re: Why Python When There Is Perl?2Stéphane CARPENTIER
6 Apr 24  ii ii ii   i ii   `- Re: Why Python When There Is Perl?1rbowman
26 Mar 24  ii ii ii   i i`* Re: Why Python When There Is Perl?88rbowman
26 Mar 24  ii ii ii   i i +* Re: Why Python When There Is Perl?2Chris Ahlstrom
26 Mar 24  ii ii ii   i i i`- Re: Why Python When There Is Perl?1rbowman
26 Mar 24  ii ii ii   i i +- Re: Why Python When There Is Perl?1rbowman
26 Mar 24  ii ii ii   i i +* Re: Why Python When There Is Perl?83Physfitfreak
26 Mar 24  ii ii ii   i i i+* Re: Why Python When There Is Perl?3rbowman
27 Mar 24  ii ii ii   i i ii+- Re: Why Python When There Is Perl?1Physfitfreak
27 Mar 24  ii ii ii   i i ii`- Re: Why Python When There Is Perl?1Chris Ahlstrom
2 Apr 24  ii ii ii   i i i`* Re: Why Python When There Is Perl?79Lawrence D'Oliveiro
2 Apr 24  ii ii ii   i i i +- Re: Why Python When There Is Perl?1Chris Ahlstrom
2 Apr 24  ii ii ii   i i i `* Re: Why Python When There Is Perl?77Physfitfreak
3 Apr 24  ii ii ii   i i i  `* Re: Why Python When There Is Perl?76Lawrence D'Oliveiro
3 Apr 24  ii ii ii   i i i   `* Re: Why Python When There Is Perl?75Physfitfreak
5 Apr 24  ii ii ii   i i i    `* Re: Why Python When There Is Perl?74Lawrence D'Oliveiro
5 Apr 24  ii ii ii   i i i     +* Re: Why Python When There Is Perl?72rbowman
5 Apr 24  ii ii ii   i i i     i+* Re: Why Python When There Is Perl?61Lawrence D'Oliveiro
5 Apr 24  ii ii ii   i i i     ii`* Re: Why Python When There Is Perl?60rbowman
5 Apr 24  ii ii ii   i i i     ii +* Re: Why Python When There Is Perl?3Lawrence D'Oliveiro
5 Apr 24  ii ii ii   i i i     ii i+- Re: Why Python When There Is Perl?1Physfitfreak
6 Apr 24  ii ii ii   i i i     ii i`- Re: Why Python When There Is Perl?1RonB
5 Apr 24  ii ii ii   i i i     ii `* Re: Why Python When There Is Perl?56Chris Ahlstrom
6 Apr 24  ii ii ii   i i i     ii  `* Re: Why Python When There Is Perl?55RonB
7 Apr 24  ii ii ii   i i i     ii   `* Re: Why Python When There Is Perl?54Chris Ahlstrom
7 Apr 24  ii ii ii   i i i     ii    +* Re: Why Python When There Is Perl?10Chris Ahlstrom
7 Apr 24  ii ii ii   i i i     ii    i+* Re: Why Python When There Is Perl?2rbowman
8 Apr 24  ii ii ii   i i i     ii    ii`- Re: Why Python When There Is Perl?1RonB
7 Apr 24  ii ii ii   i i i     ii    i+- Re: Why Python When There Is Perl?1Physfitfreak
8 Apr 24  ii ii ii   i i i     ii    i`* Re: Why Python When There Is Perl?6RonB
8 Apr 24  ii ii ii   i i i     ii    i `* Re: Why Python When There Is Perl?5Chris Ahlstrom
10 Apr 24  ii ii ii   i i i     ii    i  `* Re: Why Python When There Is Perl?4RonB
10 Apr 24  ii ii ii   i i i     ii    i   `* Re: Why Python When There Is Perl?3Chris Ahlstrom
10 Apr 24  ii ii ii   i i i     ii    i    +- Re: Why Python When There Is Perl?1Physfitfreak
11 Apr 24  ii ii ii   i i i     ii    i    `- Re: Why Python When There Is Perl?1RonB
7 Apr 24  ii ii ii   i i i     ii    +* Re: Why Python When There Is Perl?30rbowman
8 Apr 24  ii ii ii   i i i     ii    i+* Re: Why Python When There Is Perl?5RonB
8 Apr 24  ii ii ii   i i i     ii    ii`* Re: Why Python When There Is Perl?4Chris Ahlstrom
8 Apr 24  ii ii ii   i i i     ii    i`* Re: Why Python When There Is Perl?24Chris Ahlstrom
7 Apr 24  ii ii ii   i i i     ii    +- Re: Why Python When There Is Perl?1Physfitfreak
8 Apr 24  ii ii ii   i i i     ii    +* Re: Why Python When There Is Perl?9RonB
8 Apr 24  ii ii ii   i i i     ii    +- Re: Why Python When There Is Perl?1RonB
9 Apr 24  ii ii ii   i i i     ii    `* Re: Why Python When There Is Perl?2Lawrence D'Oliveiro
5 Apr 24  ii ii ii   i i i     i+- Re: Why Python When There Is Perl?1Chris Ahlstrom
6 Apr 24  ii ii ii   i i i     i`* Re: Why Python When There Is Perl?9RonB
5 Apr 24  ii ii ii   i i i     `- Re: Why Python When There Is Perl?1Physfitfreak
2 Apr 24  ii ii ii   i i `- Re: Why Python When There Is Perl?1Lawrence D'Oliveiro
26 Mar 24  ii ii ii   i `- Re: Why Python When There Is Perl?1rbowman
2 Apr 24  ii ii ii   +* Re: Why Python When There Is Perl?6Lawrence D'Oliveiro
2 Apr 24  ii ii ii   `- Re: Why Python When There Is Perl?1Lawrence D'Oliveiro
24 Mar 24  ii ii i`* Re: Why Python When There Is Perl?45Physfitfreak
23 Mar 24  ii ii `- Re: Why Python When There Is Perl?1DFS
23 Mar 24  ii i`* Re: Why Python When There Is Perl?3DFS
24 Mar 24  ii `* Re: Why Python When There Is Perl?2Stéphane CARPENTIER
21 Mar 24  i+- Re: Why Python When There Is Perl?1Lawrence D'Oliveiro
21 Mar 24  i+* Re: Why Python When There Is Perl?5DFS
21 Mar 24  i`- Re: Why Python When There Is Perl?1rbowman
20 Mar 24  +* Re: Why Python When There Is Perl?56Yaxley Peaks
21 Mar 24  +* Re: Why Python When There Is Perl?32DFS
22 Mar 24  `- Re: Why Python When There Is Perl?1DFS

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal