If it already exists in cljs, wouldn't a relatively obvious answer be "whatever 
the cljs implementation returns", if what we want is to avoid reader 
conditionals?

Erik. 
-- 
i farta

> Den 19. mai 2016 kl. 22.14 skrev Alex Miller <a...@puredanger.com>:
> 
> I think the biggest question mark is what it would return... could be:
> 
> - System/currentTimeMillis (long)
> - System/nanoTime (long)
> - (java.util.Date.)
> - (java.time.Instant/now)  - JDK 1.8+ only
> 
> and even some other less obvious options - Calendar, Joda instant, etc
> 
> I do not see an unambiguous answer.
> 
> 
>> On Thursday, May 19, 2016 at 1:23:14 PM UTC-5, JvJ wrote:
>> 
>> I know it's a minor concern.  This can be accomplished by a simple reader 
>> conditional and System/currentTimeMillis in cljc, but is there any reason 
>> that core/system-time is not in standard clojure?
>> 
>> I feel like basic utility functions should be as cross-platform as possible 
>> to minimize reliance on reader conditionals in cross-platform code.
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to