[dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Greg Reagle
Warm greetings to my fellow programmers and lovers of elegant simplicity. I wrote the sbase cal program in Pascal for fun, learning, experimentation. I have also written it in Rust and Ada, for the same reasons. I recently started re-learning Pascal (which I learned in high school) using Free

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Страхиња Радић
Дана 24/06/21 10:45AM, Greg Reagle написа: > Rust also has some good safety and ease-of-use features. It is very > big and complex with a lot of features (compared to C). Previous thread, now necroed: https://lists.suckless.org/dev/2104/34265.html * * * Rust sucks. It was made by Big Tech (M

Re: [dev] [dwm][st] why use ints over bools?

2024-06-21 Thread Markus Wichmann
Am Thu, Jun 20, 2024 at 11:53:45PM +0200 schrieb Страхиња Радић: > Given that, why complicate code by introducing a separate, superfluous, > type? Let me offer a counterpoint: Expressiveness. If I make a function return a bool, then everyone from the world's worst junior dev to Ken Thompson himsel

Re: [dev] [dwm][st] why use ints over bools?

2024-06-21 Thread Mattias Andrée
On Fri, 21 Jun 2024 21:14:19 +0200 Markus Wichmann wrote: > Am Thu, Jun 20, 2024 at 11:53:45PM +0200 schrieb Страхиња Радић: > > Given that, why complicate code by introducing a separate, superfluous, > > type? > > Let me offer a counterpoint: Expressiveness. If I make a function return > a bo

Re: [dev] [dwm][st] why use ints over bools?

2024-06-21 Thread Страхиња Радић
Дана 24/06/21 09:14PM, Markus Wichmann написа: > Let me offer a counterpoint: Expressiveness. If I make a function return > a bool, then everyone from the world's worst junior dev to Ken Thompson > himself will be able to see at the very first glance that the function > is returning a boolean value

Re: [dev] [dwm][st] why use ints over bools?

2024-06-21 Thread Storkman
On Fri, Jun 21, 2024 at 10:12:15PM +0200, Mattias Andrée wrote: > On Fri, 21 Jun 2024 21:14:19 +0200 > Markus Wichmann wrote: > > > Am Thu, Jun 20, 2024 at 11:53:45PM +0200 schrieb Страхиња Радић: > > > Given that, why complicate code by introducing a separate, superfluous, > > > type? > > > >

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Storkman
On Fri, Jun 21, 2024 at 06:48:53PM +0200, Страхиња Радић wrote: > Дана 24/06/21 10:45AM, Greg Reagle написа: > > Rust also has some good safety and ease-of-use features. It is very > > big and complex with a lot of features (compared to C). > > Previous thread, now necroed: > > https://lists.su

Re: [dev] [dwm][st] why use ints over bools?

2024-06-21 Thread stefan11111
În 22 iunie 2024 00:10:52 EEST, "Страхиња Радић" a scris: >Дана 24/06/21 09:14PM, Markus Wichmann написа: >> Isn't it all about familiarity in the end? Or can you articulate what >> parts of C11 and C23 you find objectionable? > >Just a few examples: > >- C11: bounds checking interfaces (now e

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread NRK
On Fri, Jun 21, 2024 at 10:45:01AM -0400, Greg Reagle wrote: > Basically what you might call "safety and ease issues." I won't comment on the other languages mentioned because my view on nearly all of them is negative. But most of my "safety and ease of use" with C I've been able to solve by just

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Randy Palamar
NRK wrote: > Below are two of the most impactful changes. I was going to elaborate on > these but it was getting *really* long very quickly so I've kept it to a > brief overview followed by a real-world project that demonstrates these > techniques. I completely agree. Since trying sized strings/f

Re: [dev] [dwm][st] why use ints over bools?

2024-06-21 Thread Mattias Andrée
On Fri, 21 Jun 2024 23:29:29 +0200 Storkman wrote: > On Fri, Jun 21, 2024 at 10:12:15PM +0200, Mattias Andrée wrote: > > On Fri, 21 Jun 2024 21:14:19 +0200 > > Markus Wichmann wrote: > > > > > Am Thu, Jun 20, 2024 at 11:53:45PM +0200 schrieb Страхиња Радић: > > > > Given that, why complicat