lorenzoh
lorenzoh
Seems like `nobs` is no longer exported?
Will release a first version then 👍 There is, see https://lorenzoh.github.io/Invariants.jl/dev/sourcefiles/Invariants/src/check.jl
Now that `inv(input)` and `convert(Bool, inv(input))` can be used to check in an invariant, the last remaining part of the interface left to resolve is how to check an invariant...
`check_throw` already does this and throws a `InvariantException` which ensures that the error messages are displayed as rich text. I was thinking more of an alternative syntax that doesn't require...
Splitting it up into multiple lines makes it much more readable, that's a good idea! How does inputfn make it less composable?
You can wrap any invariant in a ˋinvariant(inv; inputfn)ˋ and then compose those. Does that solve what you're trying to do?
As Kyle pointed out, this will not be quite as straightforward if we want to support inplace data loading for custom `collate` functions. Below is a sketch of a possible...
It's not possible yet but definitely something I would like to have, has also been requested by other people :D
@darsnack Should we open an issue in MLDataPattern.jl then? @drozzy Unfortunately I haven't been able to reliably send worker exceptions to the main thread so it is interrupted. [This line](https://github.com/lorenzoh/DataLoaders.jl/blob/a285a544d8fa37a332c5d4646c9f458851ca7d5e/src/workerpool.jl#L37)...
Markdown output is definitely something that should be in the library :+1: However, I think implementing a `render` method for `MarkdownFormat` and dispatching on the markdown tags may be easier...