Article View: comp.arch
Article #22Re: Optimization by programmers
From: Thomas Koenig
Date: Thu, 08 Oct 2026 05:46
Date: Thu, 08 Oct 2026 05:46
14 lines
1877 bytes
1877 bytes
EricP <ThatWouldBeTelling@thevillage.com> schrieb: > On 2026-Oct-07 15:25, Michael S wrote: >> https://doc.rust-lang.org/book/ch03-02-data-types.html?highlight=array#invalid-array-element-access > > Does Rust allow zero length arrays, vectors, strings and slices? > Ada calls these a null slice. > In DEC Fortran 77 a zero length slice was a bounds check error, Modern Fortran does allow it, and yes, it is very convenient. -- This USENET posting was made without artificial intelligence, artificial impertinence, artificial arrogance, artificial stupidity, artificial flavorings or artificial colorants.
Technical Details
Message-ID:
<11a7aoa$3hibk$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<1177fdi$26ea4$1@dont-email.me> <86bj9hr91x.fsf@linuxsc.com> <119dne7$2baig$1@dont-email.me> <86h5j5pky9.fsf@linuxsc.com> <11a024r$f52$1@reader2.panix.com> <20261007222539.000033d0@yahoo.com> <QfyxS.548$cMed.68@fx10.iad>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Thomas Koenig <tkoenig@netcologne.de> Newsgroups: comp.arch Subject: Re: Optimization by programmers Date: Thu, 8 Oct 2026 05:46:50 -0000 (UTC) Organization: A noiseless patient Spider Lines: 14 Message-ID: <11a7aoa$3hibk$1@dont-email.me> References: <1177fdi$26ea4$1@dont-email.me> <86bj9hr91x.fsf@linuxsc.com> <119dne7$2baig$1@dont-email.me> <86h5j5pky9.fsf@linuxsc.com> <11a024r$f52$1@reader2.panix.com> <20261007222539.000033d0@yahoo.com> <QfyxS.548$cMed.68@fx10.iad> Injection-Date: Thu, 08 Oct 2026 05:46:51 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3721588"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18y8HZSv5z7OAbaIqmSbxk5DuPvnaXUEUY="; posting-host="87fcd562efb96f64dc1b63bc9b988062" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:QWBb+SU8Ewf+g6OHqkeKR1siqZY= sha256:+AD8+TQM1TyoxqFthfV/w4omqz21xZRxMjn1NT/0sV0= sha1:4lmSr0kwHqhRGU2zKuOnqD5udug= sha256:ZHWzvtm0D5G397bGe7XSlwdwfnKBTf4hhX5FPB5UFGY=