Comments (2)
Maps represent a sequence of field-value items, basically what we could call a dictionary data structure, or in other terms, an hash.
The theoretical datastructure 'hash' and 'dictionary' are unordered - of course some implementations do have orderings fall-out as a side-effect (insert order, usually).
I think there should be no guarantee of order made by RESP3, as this would require Redis or any other implementer of RESP3 to always return the same ordering for a map and make implementing a client tricky in a language where the 'logical' native map type to return is not ordered (for example, Go maps, Python 2 dicts) - you would either depend on a non-standard library that provides an ordered map, or ditch the ordering and return your native unordered type.
from resp3.
Just a nit pick:
Ordered hash maps would complicate implementation for some languages, like go(map) or python(dict).
Python 3 dict
is ordered. For Go (as well as any other at least a bit widespread language) there is always an ordered map module - see e.g. https://github.com/iancoleman/orderedmap .
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
- 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.