You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you explain a bit more of what you mean? I'm not sure I understand what you're asking :) (defremote ..) already declares a function that you can use anywhere you want.
oh sorry, I kind of didn't say what I wanted to say. I was talking about the remote (cljs) side. Currently you have to use letrm or remote to get the results of a remote fn, it would be great if I could declare a function as a remote function and then use it normaly in my cljs code:
;; Server side
(defremoteadder [a b]
(+ a b))
;; Client Side (cljs) / defremote was a absolutely stupid pick from me since it is taken already ;)
(declare-remote adder)
(adder11)
I noticed that a problem was that no code highlight ate some of the stuff I wrote :)
I understand why this isn't done, the closure library is handling things entirely asynchronous for a function to return things a synchronous way would be needed :)
as a simple way to declare remote functions to call :)
The text was updated successfully, but these errors were encountered: