Gary Burgess

Results 292 comments of Gary Burgess

I would recommend never formatting imports manually, since `purs ide` should be managing them for you :wink: - imports aren't really code that you read the same way you do...

Yeah, I'm really torn on this one. With the current "algorithm" (lol... appealing to JS's `Date` object) it is an unrepresentable value, so even if we added it it would...

`snoc` is `O(n)` also - all the array-modifying functions are at least `O(n)` since they need to copy the whole array first.

Yeah, I'm not sure why it's implemented with slice rather than it being `x.concat([y])`, I assume it was benchmarked and the push version was faster. The only way we could...

I think I just `map` over a `range` when I've needed something like this in the past - that's slightly less efficient than it could be, but it's pretty much...

1. Interval durations are relative - it ambiguous to have a "month long" duration unless you have a start date to go from also. 2. Pretty printing isn't covered by...

(1) is pretty unfortunate though, you opening this issue made me think about ways of unifying the two again (albeit so that Month and Year are excluded from "time durations")....

I'll reopen this for now since there might be some stuff to discuss, and we can close it when it gets resolved as to whether we add functions here or...

> Your `Duration d => d -> Int` function is an interesting idea! So `totalHours` of a duration of 1.1 days would be 2? Actually, I hadn't thought properly about...

Yeah, I'd just make new tests for the spec stuff, and have them live together/structured similarly to the spec so they can be easily compared with the spec. I don't...