Article View: comp.lang.c
Article #657Re: Taming The Switch-Statement
From: Dan Cross
Date: Wed, 21 Oct 2026 18:43
Date: Wed, 21 Oct 2026 18:43
27 lines
2117 bytes
2117 bytes
In article <11balos$1042$2@dont-email.me>, David Brown <david.brown@hesbynett.no> wrote: >On 21/10/2026 15:22, Dan Cross wrote: >[snip] >Actually, I have mixed these up, and you are correct - the void* id is >user-assigned, and you use it as you wish. There are other places in >FreeRTOS where pointer types get "erased" and reduced to void* >unnecessarily, but this was not one of them. (In my poor defence, the >FreeRTOS code I have doesn't use timers, and the bits it does use - >threads and queues, mainly - is abstracted to a C++ interface.) No problem! >It was interesting to see the Rust code, but it made one thing clear to >me - Rust should be used for writing Rust code, and not for writing C >code in Rust syntax. Yes. When we started working with Rust, most of us had a lot of experience in C, C++, etc, and we brought a lot of inherited bad habits to our Rust code. At one point, a colleague quipped that we were writing, "crust: C in Rust syntax!" We all thought that was a great play on words, and adopted it in self-deprecating terms. Some people get pretty insulted by it, but it was never intended that way. - Dan C.
Technical Details
Message-ID:
<11bb15a$mif$1@reader2.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11baah2$3te3v$1@dont-email.me> <11baeai$959$1@reader2.panix.com> <11balos$1042$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Wed, 21 Oct 2026 18:43:54 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <11bb15a$mif$1@reader2.panix.com> References: <119qf6l$2rmg3$1@dont-email.me> <11baah2$3te3v$1@dont-email.me> <11baeai$959$1@reader2.panix.com> <11balos$1042$2@dont-email.me> Injection-Date: Wed, 21 Oct 2026 18:43:54 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="23119"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross)