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

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

Re: UTF-8 characters in comments of a program


From: Eric S Fraga
Subject: Re: UTF-8 characters in comments of a program
Date: Sun, 22 Oct 2023 14:44:08 +0100
User-agent: gnus (Emacs 30.0.50)

On Saturday, 21 Oct 2023 at 15:49, Emanuel Berg wrote:
> I'm sure modern programming languages that are designed and
> implemented today can support them, but what is the gain, really?

The gain can be an increase in readability.  For instance, being able to
use δx or ΔT as variables (e.g. in Julia) instead of delta_x, delta_T or
similar.  Mathematical expressions become more like the actual
mathematics.  Julia, in particular, actually uses unicode characters for
some of the operations, such as

for i ϵ 1:10

although you can still write

for i in 1:10

if you need to.

And you might be able to imagine being able to define operators such as
· and × for vector arithmetic.

Etc.  US-ASCII is very limiting for expression.

Just my 2¢. 😉

-- 
Eric S Fraga via gnus (Emacs 30.0.50 2023-09-14) on Debian 12.1




reply via email to

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