4 ms·
> Putting too many functions that are relatively complex in the where clause is a bad idea, because you lose the explicit type signature (you should always spec
by MaxGabriel 10y ago
> Putting too many functions that are relatively complex in the where clause is a bad idea, because you lose the explicit type signature (you should always specify it for top-level functions).
You can give functions in the where clause type signatures. It isn't as common, but it might be preferable to breaking out code into separate functions, depending on how well the function makes sense outside the context of its "parent" function.