Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.unix.shell > #24900

Re: Command Languages Versus Programming Languages

From ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups comp.unix.shell, comp.unix.programmer, comp.lang.misc
Subject Re: Command Languages Versus Programming Languages
Date 2024-04-02 08:26 +0000
Organization Stefan Ram
Message-ID <wrap-20240402092558@ram.dialup.fu-berlin.de> (permalink)
References (10 earlier) <87r0fp8lab.fsf@tudado.org> <uuehdj$2hshe$1@dont-email.me> <87wmpg7gpg.fsf@tudado.org> <LISP-20240402085115@ram.dialup.fu-berlin.de> <LISP-20240402091729@ram.dialup.fu-berlin.de>

Cross-posted to 3 groups.

Show all headers | View raw


ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
>def diff( x ):
>    return 1 if x == 'x' else 0 if type( x )is str
>    else[ 'sum', diff( x[ 1 ]), diff( x[ 2 ])]
>    if x[ 0 ]== 'sum' else None

  Oops! That was one long line starting with "return";
  it was wrapped by the newsreader, but is not correct
  Python anymore when wrapped this way.

Back to comp.unix.shell | Previous | Next | Find similar


csiph-web