洪 民憙 (Hong Minhee) :nonbinary:'s avatar
洪 民憙 (Hong Minhee) :nonbinary:

@hongminhee@hollo.social · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

Reading this also made me realize I've had a soft spot for dynamic scoping/implicits for a long time… probably since I first used @mitsuhiko's Flask, where the request context object was just there without you having to pass it around. Felt like magic, then felt like a footgun, then felt like a reasonable tradeoff again. Python has since put contextvars in the standard library, which is essentially the same idea.

Wartezimmer's avatar
Wartezimmer

@Kaesekuchen@social.anoxinon.de · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee @mitsuhiko
Sounds interesting. What pattern are using with it? How is the debugging experience? Seems weird to have additional state out side the current stackframe.