Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.c / Re: syntax adventures: get rid of =

SubjectAuthor
* syntax adventures: get rid of =fir
`* syntax adventures: get rid of =bert
 +- syntax adventures: get rid of =fir
 `- syntax adventures: get rid of =Vir Campestris

1
syntax adventures: get rid of =

<af0bfa85-9cca-48ea-b48d-0729ed75ce66n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=47224&group=comp.lang.c#47224

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5bd6:0:b0:400:a7a3:2261 with SMTP id b22-20020ac85bd6000000b00400a7a32261mr54508qtb.8.1689414823400;
Sat, 15 Jul 2023 02:53:43 -0700 (PDT)
X-Received: by 2002:a05:6870:98af:b0:1b0:239b:8dfe with SMTP id
eg47-20020a05687098af00b001b0239b8dfemr6535681oab.10.1689414823100; Sat, 15
Jul 2023 02:53:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 15 Jul 2023 02:53:42 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.17; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.17
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <af0bfa85-9cca-48ea-b48d-0729ed75ce66n@googlegroups.com>
Subject: syntax adventures: get rid of =
From: profesor.fir@gmail.com (fir)
Injection-Date: Sat, 15 Jul 2023 09:53:43 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2153
 by: fir - Sat, 15 Jul 2023 09:53 UTC

small idea appeared in my mind, im not saying its good to use its rather bad but is curious

some noticed than when comparing this == is not best, but you cant compare with = say if(a=2) {} becouse = is assign

the remark is in fact the assigning = could be get rid of.. in fact
thsi assigning is also not best , so progbably a=2 as compare is
better that a=2 as assigning

hovever this assigning is also not worst and it have long tradition
and there is question if something really better than = asssigning could be done

one option would be just use spaces like
x 100, y 200
but then space for vector arithmetic is gone..

x:100 y:200 could be considered but this ":" is good in some other
ciricumstances (also its probably not better than = if not worse)

some could use parenthesis
a(100) b(200) but im not sure in case in smoe more complex
expressions

a(sin(x*p)*20) dont look to much readable
pascal one is to long assign is to common to use two symbols
a := 2*b

so for now i dont see something better than assign,

there is yet option of puttin this assign sign on the leff

\x 200
*a 200
:a 200

i got no claryfied opinion on this yet

Re: syntax adventures: get rid of =

<bdf0e7d8-ad12-4fe6-ba27-d1f94c656276n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=47225&group=comp.lang.c#47225

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:176d:b0:637:2891:17d0 with SMTP id et13-20020a056214176d00b00637289117d0mr51663qvb.12.1689419669907;
Sat, 15 Jul 2023 04:14:29 -0700 (PDT)
X-Received: by 2002:a05:6870:b147:b0:1b0:41da:daa8 with SMTP id
a7-20020a056870b14700b001b041dadaa8mr6975496oal.1.1689419669709; Sat, 15 Jul
2023 04:14:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 15 Jul 2023 04:14:29 -0700 (PDT)
In-Reply-To: <af0bfa85-9cca-48ea-b48d-0729ed75ce66n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c4:2b88:6901:c56f:19d5:b57:640a;
posting-account=n7oCtQoAAACNS6CgW2a2eDoP2d9IRGfY
NNTP-Posting-Host: 2a00:23c4:2b88:6901:c56f:19d5:b57:640a
References: <af0bfa85-9cca-48ea-b48d-0729ed75ce66n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bdf0e7d8-ad12-4fe6-ba27-d1f94c656276n@googlegroups.com>
Subject: Re: syntax adventures: get rid of =
From: bert.hutchings@btinternet.com (bert)
Injection-Date: Sat, 15 Jul 2023 11:14:29 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1651
 by: bert - Sat, 15 Jul 2023 11:14 UTC

On Saturday, 15 July 2023 at 10:53:51 UTC+1, fir wrote:

> the remark is in fact the assigning = could be get rid of.. in fact
> thsi assigning is also not best , so progbably a=2 as compare is
> better that a=2 as assigning
>
> hovever this assigning is also not worst and it have long tradition
> and there is question if something really better than = asssigning could be done

In Algol 60, an assignment is (was?) a := 2, making '=' free for comparisons.

Re: syntax adventures: get rid of =

<f083f58d-1e65-41fe-87d2-87d860031decn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=47226&group=comp.lang.c#47226

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:5988:0:b0:635:e3ae:e096 with SMTP id ek8-20020ad45988000000b00635e3aee096mr64162qvb.12.1689420540729;
Sat, 15 Jul 2023 04:29:00 -0700 (PDT)
X-Received: by 2002:a05:6808:10d1:b0:3a1:d419:9c64 with SMTP id
s17-20020a05680810d100b003a1d4199c64mr9936037ois.5.1689420540548; Sat, 15 Jul
2023 04:29:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 15 Jul 2023 04:29:00 -0700 (PDT)
In-Reply-To: <bdf0e7d8-ad12-4fe6-ba27-d1f94c656276n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.151; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.151
References: <af0bfa85-9cca-48ea-b48d-0729ed75ce66n@googlegroups.com> <bdf0e7d8-ad12-4fe6-ba27-d1f94c656276n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f083f58d-1e65-41fe-87d2-87d860031decn@googlegroups.com>
Subject: Re: syntax adventures: get rid of =
From: profesor.fir@gmail.com (fir)
Injection-Date: Sat, 15 Jul 2023 11:29:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Sat, 15 Jul 2023 11:29 UTC

sobota, 15 lipca 2023 o 13:14:39 UTC+2 bert napisał(a):
> On Saturday, 15 July 2023 at 10:53:51 UTC+1, fir wrote:
>
> > the remark is in fact the assigning = could be get rid of.. in fact
> > thsi assigning is also not best , so progbably a=2 as compare is
> > better that a=2 as assigning
> >
> > hovever this assigning is also not worst and it have long tradition
> > and there is question if something really better than = asssigning could be done
> In Algol 60, an assignment is (was?) a := 2, making '=' free for comparisons.

too long, overally thats all damn hard..again when thinking on some things
i break again my opinion that spaces ahould go for vector arithmetics
- it probably should but not always, sometimes for separators - and many things
must be done by cerfully chosen operator precendences and complex syntax
convolitions i think

Re: syntax adventures: get rid of =

<u8uhl8$eb79$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=47232&group=comp.lang.c#47232

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vir.campestris@invalid.invalid (Vir Campestris)
Newsgroups: comp.lang.c
Subject: Re: syntax adventures: get rid of =
Date: Sat, 15 Jul 2023 17:31:36 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <u8uhl8$eb79$1@dont-email.me>
References: <af0bfa85-9cca-48ea-b48d-0729ed75ce66n@googlegroups.com>
<bdf0e7d8-ad12-4fe6-ba27-d1f94c656276n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 15 Jul 2023 16:31:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="59409dfd646da5c97a8d03bc690bda7a";
logging-data="470249"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mXbHUzrTwfe3SoIPVg5NLRkveB0aOzdo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:myhUuhEgTGRCo8p8/cDWIS1L/dY=
In-Reply-To: <bdf0e7d8-ad12-4fe6-ba27-d1f94c656276n@googlegroups.com>
Content-Language: en-GB
 by: Vir Campestris - Sat, 15 Jul 2023 16:31 UTC

On 15/07/2023 12:14, bert wrote:
> In Algol 60, an assignment is (was?) a := 2, making '=' free for comparisons.

Pascal ditto. And APL has a special left arrow character - but then APL
has a special character for _everything_!

But that ship has sailed decades ago. It can't be changed now.

Andy


devel / comp.lang.c / Re: syntax adventures: get rid of =

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor