Y
Hacker News
new
|
ask
|
show
|
jobs
by
s_trumpet
1070 days ago
I’d personally go with a single function like “convert_object_type” and pattern match into different clauses such as “convert_object_type(obj, from: m, to: mm)” and so on.