Comments (5)
I'm a little confused as to the exact use of the verbatim string. I'd assume it is for the same case you're describing, but clarification and perhaps standardisation on an encoding (i.e. UTF-8) would be useful to prevent weird issues. That being said, would it be OK to use non-printing characters (like unicode modifier chars) or terminal colour codes in a verbatim type reply?
from resp3.
Perhaps adding a third bin
to the verbatim types (existing are mkd
for Markdown and txt
for text) wto be used for verbatim strings containing things lime images or other blobs, and require that mkd
and txt
be UTF-8 (or at least printable non-weirdness).
from resp3.
Bulk strings are binary safe, there's no need for that.
from resp3.
Verbatim Strings and Bulk Strings would be equivalent in that case but it could be handy having a semantic difference between the two, and leaving verbatim strings still open to arbitrary use (if txt
and mkd
were constrained to UTF-8 strings)
from resp3.
@antirez -- what do you think about a dedicated UTF8-encoded text type? For us Python users this would mean correct handling of str
vs bytes
, which would be very very nice.
from resp3.
Related Issues (20)
- Additional "processing instruction" type HOT 2
- Syntax highlighting in the spec snippets
- Different authentication mechanisms?
- Attribute type HOT 3
- Monitor mode works with other data as well HOT 1
- Optional checksum support HOT 3
- Blob Error Code & Verbatim Type code question
- Justifications for not using existing MessagePack / BSON, etc. HOT 3
- Reconsider format for streamed types HOT 1
- Add a distinct type for keys? HOT 5
- Is map type unordered? HOT 2
- Attributes and Push Types
- Nested streamed aggregated data types
- Carification of attributes: arity, key uniquity, and permitted key types
- Maps: are keys reliably unique? HOT 1
- Doubles: reasons for disallowing exponential form HOT 2
- Side-Channel/Control Plane Information HOT 6
- Idea: backwards compatible way to drop the CR
- Blob helloworld is incorrect HOT 1
- [NOTICE] Redis RESP3 specification moved
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 resp3.