add expression of wistfulness about OCaml switches

which are more powerful than in go
This commit is contained in:
NunoSempere 2024-11-20 11:59:27 +00:00
parent 84bdfa004f
commit ad70db5f14

View File

@ -303,6 +303,7 @@ func multiplyDists(old_dist Dist, new_dist Dist) (Dist, error) {
func divideDists(old_dist Dist, new_dist Dist) (Dist, error) { func divideDists(old_dist Dist, new_dist Dist) (Dist, error) {
switch o := old_dist.(type) { switch o := old_dist.(type) {
// I miss you, OCaml switches
case Lognormal: case Lognormal:
{ {
switch n := new_dist.(type) { switch n := new_dist.(type) {