We want to introduce experimental comparisons for the Zero type for supporting the following Kotlin types: Byte, Short, Int, Long, Float and Double. These operations should be available for all platforms.
Here's the Application Programming Interface (API) goal:
interface Zero {
operator fun compareTo(other: Byte): Int
operator fun compareTo(other: Short): Int
operator fun compareTo(other: Int): Int
operator fun compareTo(other: Long): Int
operator fun compareTo(other: Float): Int
operator fun compareTo(other: Double): Int
}
🔗 Dependencies
This issue is blocked by the following ones:
[x] #646
✅ Checklist
[x] ✨ Add the compareTo(Byte) operation with tests, documentation and samples.
[x] ✨ Add the compareTo(Short) operation with tests, documentation and samples.
[x] ✨ Add the compareTo(Int) operation with tests, documentation and samples.
[x] ✨ Add the compareTo(Long) operation with tests, documentation and samples.
[x] ✨ Add the compareTo(Float) operation with tests, documentation and samples.
[x] ✨ Add the compareTo(Double) operation with tests, documentation and samples.
📝 Description
We want to introduce experimental comparisons for the
Zero
type for supporting the following Kotlin types:Byte
,Short
,Int
,Long
,Float
andDouble
. These operations should be available for all platforms.Here's the Application Programming Interface (API) goal:
🔗 Dependencies
This issue is blocked by the following ones:
✅ Checklist
compareTo(Byte)
operation with tests, documentation and samples.compareTo(Short)
operation with tests, documentation and samples.compareTo(Int)
operation with tests, documentation and samples.compareTo(Long)
operation with tests, documentation and samples.compareTo(Float)
operation with tests, documentation and samples.compareTo(Double)
operation with tests, documentation and samples.