> What is the point of an {.importc.}

Importing and using [js fetch with 
importc](https://github.com/mashingan/anonimongo/blob/develop/examples/uploadfile/appjs.nim#L5)
 example.

> What is the point of an {.exportc.}

Calling the callback which defined with exportc pragma in 
[appjs.nim](https://github.com/mashingan/anonimongo/blob/develop/examples/uploadfile/appjs.nim#L5)
 example.

In your 2nd example, you didn't need any of those case, importing and/or 
exporting, just got away with the provided procs from library.

Remove the `exportc` and `importc` in my example and see if you can get away 
without those pragma.

Reply via email to