kellysmith12.21
2021-2-20 13:19:28

I haven’t seen units and signatures used much — is there a particular reason for that?


mflatt
2021-2-20 13:25:17

Good idea in theory, not so great in practice. :slightly_smiling_face:


kellysmith12.21
2021-2-20 13:26:04

Generic interfaces turned out to be a more convenient approach?


mflatt
2021-2-20 13:26:06

A more serious answer is that macros that expand to run-time bindings are much easier to write in a world where you don’t separate interface and implementation.


mflatt
2021-2-20 13:27:05

So, we still use units in some places (DrRacket puts them to good use), but the level of generality and abstractions that units provide do not pay off most of the time.


kellysmith12.21
2021-2-20 13:28:07

That makes sense. Thanks for the info!


samth
2021-2-20 15:31:05

Also units were developed before/in parallel with the module system, and the additional benefits that units provide (recursive modules and multiple instantiation) are not significant enough, since you can get away with mutation and functions


zafar.huma
2021-2-20 17:45:09

@zafar.huma has joined the channel