Deutsch English Français Italiano |
<veamui$3jen7$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Muttley@DastartdlyHQ.org Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Fri, 11 Oct 2024 08:17:22 -0000 (UTC) Organization: A noiseless patient Spider Lines: 50 Message-ID: <veamui$3jen7$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk> <uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me> <87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com> <ve83q2$33dfe$1@dont-email.me> <87wmighu4i.fsf@doppelsaurus.mobileactivedefense.com> <ve8s6d$3725r$1@dont-email.me> <87o73rj3sr.fsf@doppelsaurus.mobileactivedefense.com> Injection-Date: Fri, 11 Oct 2024 10:17:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="0c90553b44865ecc4db3531d281fdd3e"; logging-data="3783399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181hcWRgznKT+IX8x/HYzl/" Cancel-Lock: sha1:eS92cKqjBlK3KZt/dZK/zjNdglA= Bytes: 2872 On Thu, 10 Oct 2024 17:55:32 +0100 Rainer Weikusat <rweikusat@talktalk.net> boring babbled: >Muttley@DastartdlyHQ.org ignorantly rambled: >> On Thu, 10 Oct 2024 16:09:49 +0100 >> Rainer Weikusat <rweikusat@talktalk.net> boring babbled: >>>Muttley@DastartdlyHQ.org writes: >>>> Its syntax is also a horrific mess. >>> >>>Which means precisely what? >> >> Far too much pointless punctuation. An interpreter shouldn't need the vartype > >> signified by $ or @ once its defined, it should already know. > >For the purpose of variable declaration, how's the interpeter going to Which part of "once its defined" did you not understand? >convenient, because the same name can be reused for a variable of a >different type, eg: > >my ($data, @data, %data); > >$data = rand(128); >@data = ($data, $data + 1); >%data = map { $_, 15 } @data; What a mess. And I didn't realise perl allowed variables of different types to have the same name! Insanity! Another reason never to use it again. >it's also convenient to type and easy to read due to being concise. If you say so. Others may disagree. >and returns the next line read from this file handle. In list context, >it returns all lines in the file. > >Eg, this a poor man's implementation of cat: > >perl -e 'open($fh, $_) and print <$fh> for @ARGV' Meanwhile in awk: { print } >Please don't enumerate everything else on this planet you also don't >really understand as that's probably going to become a huge list. ;-) I understand Perl vies with C++ as the most syntactically messy language in common use. Unfortunately I have to use the latter, I don't have to use the former.