Fix discrepancies in std modules #1662
Labels
Additional info please
Further information is requested
Discussion needed
This feature needs discussion to iron out details
Stdlib
Standard library issue
Examples
is_same($TypeA, $TypeB)
vs@has_same(#a, #b, ...)
@is_same($TypeA, $TypeB)
is_equatable_type($Type)
vs@equatable_value(#value)
(whereis_equatable_value
is@deprecated
)@equatable_type($Type) @const
fault ConversionResult
vsfault BacktraceFault
vsfault AllocationFailure
vsfault NumberConversion
fault *Failure
? or something else?fault NumberConversion
is descriptive which I prefer. So, not anyfault
should be renamed; if descriptive.For functions prefixed with
@
(like@equatable_type
) there should be a rule when@
must be set.I think if all parameters are prefixed with
$
or#
, and only then, they should be prefixed with@
.So
Something($TypeA, $TypeB)
but not withSomethingElse(any p, $Type)
(I think that's not allowed anyway).There should also be a rule for what must be after an
fault
-type. (Failure
or nothing).Result
is not meaningful enough for me, because a result can be an error, but does not have to be.The text was updated successfully, but these errors were encountered: