Comments (2)
In your comment in #186, you suggest
putting spectial mark on char object
when invalid byte sequence is encountered.
Would it be possible just raising an error
in that case? (possibly with an API to get
the bytes in question.)
from gauche.
That could be one solution. Invalid byte sequences could throw an error in CES conversion routine anyway, so wrapping invalid octet as a special kind of char is at most an unreliable abstraction (meaning, you can't count on it everywhere).
My concern is that occasionally you do encounter unexpected data, and sometimes throwing an error is inconvenient. But probably a flaky abstraction won't do much good.
from gauche.
Related Issues (20)
- `build-standalone` fails with "configP.h: file not found" HOT 2
- SRFI 252 rational-generator does not sample inexact-rational-generator. HOT 1
- Fix `define-cmethod` argument specializers
- Check Windows command-line escaping for batch files HOT 5
- Newer version of MbedTLS causes test failure
- `gauche.package` - Create a specific condition type to report package description errors
- `gauche.configure` - Split source
- mbedtls 3.6.0 on MinGW can't connect HOT 1
- `#<undef> is used in boolean context` when interpolating module name in REPL
- configure - Program text - Stree or list of lines?
- Return value of `process-output->string` when the subprocess exits abnormally
- configure - Wrong substitution of `@srcdir@` HOT 1
- shell-compatible `case`
- Initialization fails if descriptive type instance is precompiled
- cf-output needs better escaping HOT 3
- Tiny issue: gosh precomp usage HOT 1
- Printing content of hashtables/treemaps
- Revise uuid API
- Better genconfig
- write-uvector doesn't understand 'big endianness 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 gauche.