On Tue, Jan 2, 2024 at 7:33 PM Mike Hodson <[email protected]> wrote:

I'll admit I have not scripted Leo at all, and have only used it sparingly
> as an editor/organizer because of oddities in autosave..
>
> But why in all the world is a function called 'es' [I presume g means
> global scope] something that prints to the log window?
>

Because g.es gets called a lot, and "es" is a prefix for other functions
such as g.es_exception.

It's one of the *few* names that Leonistas should just remember, along with
c, g, p, g.app, etc.

The principle is, the more common the usage, the shorter the name. Think e
= mc**2.

Edward

P.S. g.es outputs a string (actually, all its arguments) to the log.

g.os would be confusing, because os typically means operating system. We're
stuck with g.es because renaming it would break existing scripts. The
origins of the name are lost in the mists of Leo's history.

If you *really* don't like, g.es, you are free to create a plugin that
aliases g.es to g.output_to_log_pane :-)

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0sTNJgXaG%3DCm1txMzxdQPiLVxgiW%3Daq4quLfX-CUpKiw%40mail.gmail.com.

Reply via email to