You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we admit negative durations (e.g., X happened -1 seconds after Y = X happened 1 second before y), then durations form a vector space. I don't know enough about vector space classes available on Hackage, but we could instantiate them ... if we admitted negative Time. I don't understand why it's not allowed.
The text was updated successfully, but these errors were encountered:
I'm not familiar with vector spaces, but I too have previously wondered why negative durations are not allowed, and the initial rationale has not been documented anywhere (AFAIK).
To give a concrete use case, this would be useful to calculate the period between two events t0 and t1 where you don't know which event will happen first (i.e. t1 - t0 could be positive or negative).
If we admit negative durations (e.g., X happened -1 seconds after Y = X happened 1 second before y), then durations form a vector space. I don't know enough about vector space classes available on Hackage, but we could instantiate them ... if we admitted negative
Time
. I don't understand why it's not allowed.The text was updated successfully, but these errors were encountered: