Dean Landolt
未読、2009/08/27 16:08:022009/08/27投稿者に返信する場合はログインしてください
転送する場合はログインしてください
このグループ内のメッセージを削除する権限がありません
メッセージを報告するにはログインしてください
メールアドレスがこのグループでは匿名化されているか、メンバーのメールアドレスを表示する権限がないため、元のメッセージを表示できません
To: comm...@googlegroups.com
Given many of us seem to be in the mood to question JSGI's Rack and WSGI roots, I've always been curious why JSGI maintains the dot delimited keys tradition started by python: wsgi.input, wsgi.errors, etc. This is a fair custom in python because noone expects dot syntax on standard dicts. Obviously not so with js, and env['jsgi.input'] et. al. seem needless when all your uppercase CGI keys are _ delimited and available with dot access...
It's not a very big deal, just a minor nit since we're bikesheding anyway. But if wsgi's development path is any indication, middleware extensions will also stick with the <module>.<key> convention laid out by the spec. If extension keys were delimited by some other means I'd typically be able to have dot access on my whole env and I'd be a much happier middleware developer. I imagine most js folks would agree. I imagine plain old underscores would be fine (jsgi_input, jsgi_errors, etc.) would be fine, unless someone has a better idea.