Hayleigh Thompson

Results 32 comments of Hayleigh Thompson

I like the trailing lambda idea, and I think it's used to good effect in Kotlin and Swift(?). We could be a bit more intentional with the syntax though: generalising...

There is a subtle difference between `onInput` and `onChange`, namely the latter will only fire when the selected option changes (as the name would suggest). `onInput` can be useful when...

It may also be desirable to give developers the opportunity to set the polling interval themselves. This would be particularly useful for longer intervals: If we were doing `Context.every 1`...

Tentatively fixed in 2959bb19754823bcb09c9797a34abcb4a5b7e0bf, the new API is used as follows: ```elm Context.every 0.25 model.time NoOp Tick model.context ``` Where the arguments, in order, are: - Interval in seconds `:...

Adding some extra context at @erikareads (on discord)'s request: You can only write ffi code directly inside src/, but we'd find it a lot more useful if i could co-locate...

If you think you could work it out I'd be very grateful! It has so-far eluded me, I'd appreciate someone that knows what they're doing chiming in 😅

If you're on discord feel free to drop me a DM @hayleigh.dev ^.^

I don't agree that `@internal` has some confusing conflation with `@external`. If you take more than a second to consider it, an internal dual to `@external` makes no logical sense:...

Remember that the purpose of this annotation is to _hide a declaration from the generated docs_. That means anyone who sees this annotation is necessarily looking at the source code!...

> Making it a flag means there's yet another flag that can't be passed easily down into the Gleam program No flags can be easily passed down into a gleam...