Implement reader literal and print support for PersistentQueue data structure

Description

Clojure's PersistentQueue structure has been in the language for quite some time now and has found its way into a fair share of codebases. However, the creation of queues is a two step operation often of the form:

A better experience might be the following:

This syntax is proposed and discussed in the Clojure-dev group at https://groups.google.com/forum/?fromgroups#!topic/clojure-dev/GQqus5Wycno

Open question: Should the queue literal's arguments eval? The implications of this are illustrated below:

The answer to this open question will determine the implementation.

Environment

None

Assignee

Fogus

Reporter

Fogus

Approval

None

Patch

Code and Test

Affects versions

Priority

Minor
Configure