Skip to content

A different approach for all delimiters ]}) #1

Description

@shaunlebron

Thanks for making this experiment. Had a new idea to run by you:

  • Opening delimiters required.
  • Closing delimiters at the end of each line not allowed.
  • Closing delimiters inferred before the first line whose x falls behind its own.
  • Closing delimiters required for strings since whitespace is significant there.
(defn component
  "a hiccup style component.
  second line of docstring."
  [image-source
  (html
    [:div
     (if image-source
       [:img {:src image-source
              :on-click #(swap! app-state
                           update-in [:counter] inc
       [:span "no image"
     (for [[i msg] (map-indexed vector messages
       [:div {:style {:background (lookup-color i
        msg

This would allows us to remove most ]}) delimiters, not just ):

screen shot 2015-09-19 at 1 41 04 pm

Not sure how practical it would be for writing, but I think it reads okay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions