Skip to content

Commit

Permalink
Start documenting limitations
Browse files Browse the repository at this point in the history
Fixes #181
  • Loading branch information
djblue committed Aug 27, 2023
1 parent a7de0e9 commit af37b6f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/cljdoc.edn
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@
["System Deps" {:file "doc/dev/deps.md"}]
["Editor Setup" {:file "doc/dev/editors.md"}]
["Dev Tasks" {:file "doc/dev/tasks.md"}]]
["Inspiration" {:file "doc/inspiration.md"}]]}
["Inspiration" {:file "doc/inspiration.md"}]
["Limitations" {:file "doc/limitations.md"}]]}
19 changes: 19 additions & 0 deletions doc/limitations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Limitations

Since the Portal UI is implemented in ClojureScript, it also adopts some of its
platform limitations.

## Dates

Dates captured from your host platform are interpreted as `js/Date` in the
Portal UI. Therefore, as documents by this [ClojureScript issue][date-issue],
they are potentially interpreted against a different calendar.

## Longs

Since JavaScript doesn't support the full range of numbers provided by longs,
integers outside of a certain range must be boxed and shipped as string to the
UI. This precludes them from participating in viewers that expect `js/Number`.


[date-issue]: https://github.com/clojure/clojurescript-site/issues/367

0 comments on commit af37b6f

Please sign in to comment.