Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Clojure Design
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
Colour
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Undo
Redo
Keyboard Shortcuts Help
<p>Java collection types currently print as</p><pre>#<ClassName {toString rep}></pre><p>As a result, their contents are not subject to control via Clojure's flags:</p><pre>*print-length*, *print-level*</pre><p>This is a big pain when working with big Java data at the REPL. I propose that, when their print forms are not overridden in derived classes, objects that implement the core Java collection interfaces print</p><ul><li>with the same rep as Clojure's persistent collections</li><li>subject to the various print binding flags</li></ul><p>Not in scope</p><ul><li>Per Rich's comment in the discussion, Java collections should not expose their type in print rep, so an array list should print as <span style="font-size: 10.0pt;line-height: 13.0pt;">e.g. </span><code style="font-size: 10.0pt;line-height: 13.0pt;">[1 2]</code><span style="font-size: 10.0pt;line-height: 13.0pt;"> like any other sequential collection. </span></li><li><span style="font-size: 10.0pt;line-height: 13.0pt;">print-dup </span></li><li><span style="font-size: 10.0pt;line-height: 13.0pt;">Print/read roundtripping to a specific concrete type</span></li></ul>
Attachments
Labels
Location
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced