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?
_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur