Comments (3)
- fseek ⇒ readFile
I wouldn't mind handling errors better here. There's still a good bit of work to do in the CLI around handling imports. The current support is pretty rudimentary. (See #4.) When that happens, this code may end up getting rewritten. But, until then, better error handling is always good.
printf ⇒ main
Eh, if Wren can't successfully print the usage info, there's probably not much it could do to recover from that error either. Do you think error handling would be useful here?
from wren-cli.
- I suggest to avoid ignorance of return values a bit more.
- How do you think about to indicate a file output failure by a corresponding exit status for your program?
from wren-cli.
How do you think about to indicate a file output failure by a corresponding exit status for your program?
Sure, that seems reasonable for code in the CLI.
from wren-cli.
Related Issues (20)
- Proposal: `File.basename` and `File.dirname`
- RFC: Consider using an actual Wren testing library
- Document auto-generation? Moving docs from `wren` to `wren-cli`? HOT 3
- What is the correct behavior of `Stdin.readLine`? HOT 1
- What is the correct behavior of `Stdin.readByte`?
- What is correct behavior of `Stdin.readCodepoint`?
- continue HOT 12
- ER: import from a specified location HOT 6
- [BUG] "Unhandled key-code [dec]: 8" on Backspace HOT 5
- Meta module only load in REPL HOT 1
- libuv is a problem HOT 11
- Failed to build: Error: conflicting types for ‘write’; have ‘void(WrenVM *, const char *)’ HOT 5
- ANSI Color for gray comes up black on MacOS terminal HOT 3
- Add a dynamic link build with wren and libuv
- Does not build on FreeBSD HOT 1
- .
- Absolut import does not work. HOT 4
- Minour she bang issue (#! /bin/path/to/wrenc) not working properly
- Log.info allows only strings HOT 2
- Missing ChangeLog entry for 0.4.0
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 wren-cli.