help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: let, let*, oh, why [was: Elisp - Function returning a list]


From: Emanuel Berg
Subject: Re: let, let*, oh, why [was: Elisp - Function returning a list]
Date: Sun, 27 Dec 2020 12:52:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Byung-Hee HWANG wrote:

>> But of course, feel free to do whatever with it :)
>>
>> [1] https://dataswamp.org/~incal/HYPERLIST
>> [2] https://dataswamp.org/~incal/#bot
>> [3] https://dataswamp.org/~incal/bot/scripts/hist
>
> Wow Emanuel you Python3 code(sth.py) so cool! AMAZING!!!
>
> Sincerely, Gnus fan Byung-Hee

Well, thank you Hwang. But I'm sure there is some Python pro
reading this who thinks that code stinks. Normally I always
encourage people to listen to the pros, but in this case, let's
settle for "the truth is somewhere in between" :)

Development is Python is very, very fast. Speaking of the
pros, I don't even dare think how fast they develop in Python.

As for the coolness and beauty, well, compare...

Python:

__version__ = time.strftime('%Y-%m-%d', 
time.gmtime(os.path.getmtime(pathlib.Path(__file__).absolute())))

Lisp:

(defvar bot-version)
(setq bot-version (format-time-string "%Y-%m-%dT%H:%M:%S"
                   (nth 5 (file-attributes buffer-file-name)) ))

eheh

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]