Giter Club home page Giter Club logo

Comments (4)

kytrinyx avatar kytrinyx commented on August 25, 2024

I'm not sure (not familiar with Rust). @bitborn do you remember what this was about?
@petertseng @EduardoBautista do you have any ideas here?

from rust.

petertseng avatar petertseng commented on August 25, 2024

In its initial form, it appears this test just wanted conversion to a string. Asking for that may be clearer than as_ref. I would have suggested https://doc.rust-lang.org/std/string/trait.ToString.html, but apparently you shouldn't implement this directly but instead should implement https://doc.rust-lang.org/std/fmt/trait.Display.html which requires students to think about Formatters. Might be a bit much.

Of course there's the question of "what's the value in asking students to be able to convert their RNA to a string anyway?". That I'd want to take some time to survey this problem in other languages to understand why. I've not thought about this exercise before.

from rust.

IanWhitney avatar IanWhitney commented on August 25, 2024

FWIW, I'm familiar with the Elixir and Ruby version of this exercise and they don't have any tests like this.

from rust.

petertseng avatar petertseng commented on August 25, 2024

I'm not by any means an expert on best practices in Rust (which is only relevant if there's some Rust practices reason for keeping this test in), but my current thinking is to agree - the test on converting to a string is not really useful (it's not to do with the problem statement, there's no clear use case for converting the RNA to a string, other languages don't do it, and other tests in xrust don't do it). I'm in favor of removing it.

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.