
-
-
Replying to @yaahc_ @ManishEarth and
Im really trying to find that code. It was a marvel.
1 reply 0 retweets 6 likes -
Replying to @bitshiftmask @yaahc_ and6 replies 2 retweets 29 likes
-
-
Replying to @iximeow @bitshiftmask and
As much as I admire you for being able to produce this that does compile, no sane human can consume this API.
2 replies 0 retweets 1 like -
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
I think that it's a problem if new contributors find code so opaque that it's difficult to contribute to, which can often be caused by unreasonably generic code, or code that has been abstracted poorly
-
-
Yeah, strong agree with this. Maintainability and comprehension are important factors! But its all a balancing game with all the other components, perf, correctness, extensibility/replaceability. Engineering is all about tradeoffs, and one tradeoff is rarely universally correct
1 reply 0 retweets 2 likes -
Replying to @bitshiftmask @sgrif and
But the fact that we CAN express these kind of constraints is def good.
0 replies 0 retweets 2 likes
End of conversation
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.