Giter VIP home page Giter VIP logo

Comments (5)

weissjeffm avatar weissjeffm commented on June 15, 2024

This test doesn't fail anymore (it does give an error, but probably not the type we want). However just evaling "#" in the repl doesn't return an error and it sounds like it should.

A larger issue here is that the parser module uses Option where it should be using Result. I'm going to try to fix this along with #146 , with the general goal being "bad user input at the repl should not cause a panic". There are lots of places where we panic due to bad user input (via unwrap, assert, or explicit panic). I'll try to hunt down as many of these as possible and have them return Results. Panic should be only when we know there's a bug in the program somewhere.

@porcuquine you can assign this to me as well.

from lurk-rs.

porcuquine avatar porcuquine commented on June 15, 2024

That sounds right, but just bear in mind that as currently constructed, many of the reader's helper functions do also need to return Option (in some form). So a fix that replaces those with Result won't be right. They may need to become Result<Option<…>>.

from lurk-rs.

weissjeffm avatar weissjeffm commented on June 15, 2024

With PR #150 it looks like this:

> (cons # "")
Read error: Parser("Could not read character")

from lurk-rs.

huitseeker avatar huitseeker commented on June 15, 2024

@arthurpaulino do we have a test for this one?

from lurk-rs.

arthurpaulino avatar arthurpaulino commented on June 15, 2024

I don't think so. I tested it manually.

We can mark this one as good first issue and add a test for it later

from lurk-rs.

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.