[libre-riscv-dev] why developers love rust on stackoverflow blog

Luke Kenneth Casson Leighton lkcl at lkcl.net
Wed Jun 10 13:06:43 BST 2020


On Wed, Jun 10, 2020 at 9:22 AM Jacob Lifshay <programmerjake at gmail.com> wrote:
> I definitely agree, and the lack of good interfaces is one of my biggest
> pain points with Python.

yep.  except... in a large well-maintained collaborative and useful
project, you need unit tests, regardless of what language the code is
in.

and if that language is python, well-written and properly
comprehensive unit tests will inherently find you any interface
problems pretty much instantly - just not at compile-time, because
there isn't one [except if you use cython].

and if they're _not_ found, that's indicative of a failure of the
whole team - including the contributing userbase - to write (or
contribute) sufficiently comprehensive unit tests.  *not* of the
language itself.

rust, i get it: there's a strong reliance on the compiler, and on the
definition of types, in ways that have not been done in other
langugages.  in my mind, the alarm bells there are to imagine that
because the language provides that safety net, therefore
"automatically unit tests are not necessary to write, because the
compiler will catch everything for me".

l.



More information about the libre-riscv-dev mailing list