Comments (5)
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 Result
s. 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.
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.
With PR #150 it looks like this:
> (cons # "")
Read error: Parser("Could not read character")
from lurk-rs.
@arthurpaulino do we have a test for this one?
from lurk-rs.
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)
- Parse Error when input is larger than field HOT 1
- Chain server
- expose minimal bit operations
- move sha256 coprocessor out of lurk crate HOT 1
- Avoid dangling symbols
- Optimize memory usage in `ZDag` functions
- Nightly run failed HOT 1
- chore: some installed deps are not needed
- Nightly run failed
- Migrate to `tonic_rpc`
- `call` and `chain` meta-commands should take one argument
- Coroutine support for `Op::Recv` and `Op::Emit`
- Move `lang` and `prove_from_frames` to the `Prover` trait
- [LUR-37] Supernova benchmarking gap HOT 1
- A better design for Z data
- Expand `chain` and `call` to use generic callables
- Chain server pt2
- chore: rust toolchain needs an upgrade
- Nightly run failed HOT 80
- error: inline assembly requires more registers than available HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lurk-rs.