3 ms·
I'll start. A programming language with the ability to dispatch on version could be very interesting, and possibly allow for safer upgrades on a per function b
by nixpulvis 5y ago
I'll start.
A programming language with the ability to dispatch on version could be very interesting, and possibly allow for safer upgrades on a per function basis.
Still it feels like this should be part of an interface between a PL and some other set of packaging options. A convention for where to place libraries (with versions) like /lib is basically the solution. But I guess the various communities don't really want to get into a turf war, so maybe it's /lib/ruby and /lib/python in addition to the rest?
- CamTin 5y agoPerl almost does this. Various CPAN packages have different "use" lines where they can declare themselves to be written in a particular version. These can all live together on an interpreter recent enough to know all the dialects. This is at the module level, rather than the function level though.
- nixpulvis 5y agoI'm imagining something like `foo@v2.3.1(x)`. Of course, `foo(x)` would still work, but it would probably just choose the top version, like how things generally work today. Integrate with signed VCS and call it a day.