question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Given that the type Block is about to be appropriated for immutable arrays, I’m contemplating a new API for this library. For now the best I can come up with is:

Block.validate // old
Block.value    // old

Box.validate   // new
Box.value      // new

I’m leaving this issue open here if anyone has suggestions.

In case you’re wondering, it can’t just be validate, it’s part of the trickery that allows one to only specify one generic parameter when in fact two are needed (i.e. validate<Text> instead of validate<Text, TextError> or similar) which I’m sure everyone agrees is too convenient to let go.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lfrcommented, Jan 31, 2021

Incidentally, since this lib essentially generates results, it’s very likely to be used with yours, so much so that I couldn’t help myself from adding it to the live demo 🤷‍♂️

1reaction
lfrcommented, Jan 22, 2021

The only thing I’d say is let’s try not to shadow/overlap functions in FsToolkit.ErrorHandling.Validation.

Thanks for pointing this out Jimmy, I’ll keep your API in mind to avoid conflicts, also I have no intention of going monadic style with this lib so even if they have to coexist with the same module name (which is not at all a given at this point), they’re clearly heading in different directions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

News API – Search News and Blog Articles on the Web
News API is a simple, easy-to-use REST API that returns JSON search results for current and historic news articles published by over 80,000...
Read more >
Top 10 Best News APIs ( in 2023) [60+ Reviewed]
The News API is a Google News and Bing News alternative. The API allows developers to search news from over 2,500+ Publishers around...
Read more >
New API
New API is an interface to use interrupt mitigation techniques for networking devices in the Linux kernel. Such an approach is intended to...
Read more >
Documentation
News API is a simple HTTP REST API for searching and retrieving live articles from all over the web. It can help you...
Read more >
NewsData - News API to Search & Collect Worldwide News
Free News API to get JSON search results for live and historic news from 15000+ sources worldwide. Access real-time global news articles with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found