As much as I admire you for being able to produce this that does compile, no sane human can consume this API.
-
-
Sometimes complex impls are in service of minimal APIspic.twitter.com/Q1jBHtfbBv
3 replies 0 retweets 11 likes -
Yeah, having APIs like this with lots of *independent* generic parameters is NBD imo pretty easy to use, most folks define a type alias if they need to name the type a lot but only use one impl
1 reply 0 retweets 8 likes -
Replying to @ManishEarth @yaahc_ and
I have some really terrible examples from early Stylo days that I should scrounge up, where the type parameters are all entangled
1 reply 0 retweets 3 likes -
Replying to @ManishEarth @yaahc_ and
I had some examples from Diesel that I used to think were horrible until I saw some open source code that... Was extremely generic.
2 replies 0 retweets 6 likes -
Replying to @sgrif @ManishEarth and
i don’t know if i really think this kind of code is “bad”...it’s saying a lot, when you think about it!
2 replies 0 retweets 4 likes -
also, of the fairly small handful of languages that even let you *express* this kind of type constraints, rust’s syntax for it is the most readable by far
2 replies 0 retweets 9 likes -
-
Replying to @sgrif @ManishEarth and
hot take: `=>` is the least obvious syntax in all of haskell
3 replies 0 retweets 6 likes -
scala has this ability for people to override and redefine operators. Also what's wrong with the fish operator `><>` ? Isn't it lovely?
2 replies 0 retweets 0 likes
I still have nightmares about trying to read other folks SBT files, not recognizing an operator, and basically having no way to look it up. You can't google random punctuation
-
-
Also why the fuck does every Scala lib think that ~> is a meaningful operator that they need to override with a new meaning
1 reply 0 retweets 3 likes -
yeah, they should all consider using `>@>`. It makes much more sense.
1 reply 0 retweets 0 likes - 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.