[Ur] Running same function on client and server
Adam Chlipala
adamc at csail.mit.edu
Thu Mar 9 13:03:34 EST 2017
You shouldn't need to make any special effort. Code that appears in
syntactically server-side positions runs on the server, and code that
appears in syntactically client-side positions (e.g., event-handler
attribute of HTML tag) runs on the client.
On 03/09/2017 09:41 AM, Artyom Shalkhakov wrote:
> Hello all,
>
> I'm writing some unit-tests (for urweb-regex), and would like to run
> same function (say f) on both client, and server. Is it possible to
> ensure that the compiler emits [f] to both C and JS?
>
More information about the Ur
mailing list