An interesting consequence of Scala 3's context functions is that since the parameter's name isn't chosen at the call site (it's implicit), it's often accessed using a helper method, and that method will have a consistent canonical name across codebases. That helps readability.
I was thinking about `the` when I wrote my last reply, but mostly because I hated it as the name of a thing! I'm fine with naming methods after nouns, verbs and prepositions in code... but an article just seemed wrong!
-
-
Long ago, my hope was that it would be possible to have parsable syntax that allowed *no* method name to be used, so you would just write the type inside square brackets to get the contextual instance... but that didn't work out.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.