squint

m3tti 2024-11-14T14:47:59.492059Z

Does squint have promesa in it? Asking for a friend 😉

borkdude 2024-11-14T15:07:11.653779Z

no, just use straight promises with js-await

👍 1
m3tti 2024-11-14T15:07:34.298979Z

will do

janezj 2024-11-20T09:28:21.602379Z

@borkdude What is your opinion about promesa in squit? Probably a lot of nbb users are using promesa, but looking into implementation or how big api is, it seems to me that it would be hard to make it squint compatible.

borkdude 2024-11-20T09:34:24.056769Z

It can be accomplished using macros. I’ll get back to this

borkdude 2024-11-20T13:04:19.365269Z

Macros to make a project compatible with promesa could follow the same approach

borkdude 2024-11-20T13:04:41.157289Z

at least for p/let etc

janezj 2024-11-20T13:07:55.679139Z

what a clever trick, using package.json and :paths as deps

janezj 2024-11-20T13:12:28.858949Z

I'm interested also your opinion about design, do you personally like abstractions in promesa, would you design it similarly?

borkdude 2024-11-20T13:13:48.627939Z

in my opinion promesa primarily exists for CLJS since it doesn't have async/await. in squint I don't miss it

borkdude 2024-11-20T13:14:13.135599Z

but yeah, it does assume you don't want to re-use the same code for nbb

borkdude 2024-11-20T13:14:26.227749Z

for this you could write some macros like above

borkdude 2024-11-20T13:14:39.832089Z

promesa does come with some performance overhead

borkdude 2024-11-20T13:14:47.644709Z

but I never really cared about that for nbb scripts