swift-metrics/Sources/Examples
tomer doron 5c1c739969
make protocol functions data type specific
motivation: it's very beneficial for the protocols to use functions with concrete types because then there's no need for specialisation. At compile time, the compiler can often not know what concrete type will be used so it needs to create a 'generic at runtime' version of the function. If however all functions on the protocol do not use generics, there's no need for a 'generic at runtime' version of the function

changes:
* change CounterHandler::increment to take Int64 instead of <DataType: BinaryInteger>
* change RecorderHandler::record to take Int64 and Double instead of <DataType: BinaryInteger> and <DataType: BinaryFloatingPoint>
* adjust example and test implementation
* adjust docs
2019-04-05 10:30:46 -07:00
..
Example1.swift refactor APIs to make them closer to swift-log APIs 2019-02-25 15:04:43 -08:00
ExampleMetricsLibrary.swift make protocol functions data type specific 2019-04-05 10:30:46 -07:00
Quantiles.swift license 2019-02-21 19:47:50 -08:00
RandomLibrary.swift refactor APIs to make them closer to swift-log APIs 2019-02-25 15:04:43 -08:00
SimpleMetricsLibrary.swift make protocol functions data type specific 2019-04-05 10:30:46 -07:00
main.swift license 2019-02-21 19:47:50 -08:00