Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Javascript replacing Java? Date: Tue, 16 May 2017 19:14:56 -0400 Organization: Aioe.org NNTP Server Lines: 19 Message-ID: References: <75947fa8-5d0c-415c-b2f1-78ccd38293a3@googlegroups.com> NNTP-Posting-Host: PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:36636 On 5/16/2017 6:43 AM, Martin Gregorie wrote: > On Mon, 15 May 2017 19:08:49 -0400, Arne Vajhøj wrote: >> In fact I am pretty sure that your favorite shell script language is not >> strong typed. >> > Thats a fair point, but when you look a bit closer, you soon see that it > is really only using String variables. Sure, some (process exit codes) > are ints but nobody dies anything but comparisons with them so there > would be little difference if they were actually strings. > > Yes, you can do arithmetic in a shell script, but to do that you need to > use the expr utility, which is written in C, to evaluate even simple > arithmetic or logical expressions and more complex string operations. That used to be the case. But I believe that they have added arithmetic capabilities. Arne