StaticFile.fromFile has too many overloads
See original GitHub issueWe abused overloading on StaticFile.fromFile
. Look at reducing overloads, either through default parameters or different names for the functions. Deprecation is good if we’re changing public API in a source incompatible way, but if we start now, we can get it cleaned up for 1.0.
Overlaps a bit with #2071, so communicate if you happen to be picking this up at a hack night.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
c# - Static class methods overloads use cause a compiler error
When the compiler resolves the overload that is to be called, it analyzes the parameter types and their relations. E.g. you could have...
Read more >http4s/http4s - Gitter
Aug 17 2018 16:02 UTC. We have a maze of overloads in StaticFile.fromFile that are worth reconsidering. Christopher Davenport. @ChristopherDavenport.
Read more >Http4s vs Finch vs Akka-http vs - Reddit
Hi! I'm starting a new project, and I torn between all the http libraries. I've used Play for 3 years, and it's time...
Read more >Static Files - http4s
Usually, if you fetch a file via HTTP, it ships with an ETag. ... Http4s provides a few helpers to handle ETags for...
Read more >FAQ - Apple Open Source
Since August, 2005, many of the existing CVS resources have been centralized on ... It is used in too many different ways in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I thought that was something that could be handled by converting to an algebra:
Yeah, it’s already an effect, so we can get the length and flatMap it.