add expression of wistfulness about OCaml switches
which are more powerful than in go
This commit is contained in:
parent
84bdfa004f
commit
ad70db5f14
1
fermi.go
1
fermi.go
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user