Sujet : Re: Suggested method for returning a string from a C program?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 20. Mar 2025, 21:57:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250320225709.00004380@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Thu, 20 Mar 2025 19:58:37 -0000 (UTC)
Kaz Kylheku <
643-408-1753@kylheku.com> wrote:
It's an embarrassing blemish on Rust that they made their principal
integer types like this; it makes all Rust code look idiotically
hardware dependent. You can't code an abstract algorithm out of
Sedgewick, Knuth or Cormen in Rust without peppering the code with
distracting 32's and 64's.
If size suffixes make you nervous, Rust has equivalents of size_t and
ptrdiff_t. Named, respectively, usize and isize.
But you probably know it.