A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/clojure-emacs/cider/issues/3786 below:

nrepl-bencode doesn't sort dictionaries by key · Issue #3786 · clojure-emacs/cider · GitHub

From https://clojurians.slack.com/archives/C17JYSA3H/p1741890145125339.

It appears that CIDER doesn't adhere to Bencode spec which requires dictionary keys to be sorted alphabetically. This hasn't been a problem so far because the bencode reader on nREPL side doesn't validate the order of keys. Still, it will be rigorous to produce correct values according to the selected format.

Expected behavior
(nrepl-bencode '("b" 2 "a" 1))
=> "l1:ai1e1:bi2ee"
Actual behavior
(nrepl-bencode '("b" 2 "a" 1))
=> "l1:bi2e1:ai1ee"

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4