Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Module functors vs. records-of-functions for interface/implementation separation

$
0
0

it’s what i’ve been doing too. you’re using a static impl though which is sort of a no-no to me but it makes sense just from the name (you likely won’t be running your app instance on more than one platform at a time :smile:)

i’m exploring using module type T to model behaviors instead of type t though and it actually sort of makes sense even though i’m not necessarily generating actual types. in that sense i tend to agree with @tsnobip earlier comment re. records-of-fns being at least uncommon for this purpose in rescript. i haven’t landed on anything final though so just exploring ideas here.

ps. what’s CCA?


Viewing all articles
Browse latest Browse all 2592

Trending Articles