bug-bash
[Top][All Lists]
Advanced

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

Re: Should [[ -v 1 ]] be supported?


From: Peng Yu
Subject: Re: Should [[ -v 1 ]] be supported?
Date: Thu, 27 Dec 2018 19:24:22 -0600

> I don't believe that at all. The number of positional parameters is kept
> anyway. It's not recalculated when you compare it to another number, so
> it's just as fast as a simple comparison of two integers.

Getting the number $# is slow.

> And even if it weren't -- if performance is *that* important to you,
> you're using the wrong language altogether.

There is no reason why bash has to be slow. Javascript was slow. But
it has been optimized to be much faster than it was before.

What I see bash is that it is syntax is much better than other
languages in terms of interactive use and not use () for arguments? It
could be made faster and with some additional features, it could be
used for other more serious applications rather than just a glue of
other tools.

-- 
Regards,
Peng



reply via email to

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