Django Book 翻译
菜单>:
TOC
返回
原文:
Of course, the benefits of named groups come at the cost of brevity; some developers find the named-group syntax ugly and too verbose. Still, another advantage of named groups is readability, especially by those who arent intimately familiar with regular expressions or your particular Django application. Its easier to see whats happening, at a glance, in a URLconf that uses named groups.
翻译:
当然,命名组的代价就是失去了简洁性:一些开发者觉得命名组的语法丑陋和显得冗余。 命名组的另一个好处就是可读性强,特别是熟悉正则表达式或自己开发的Django 应用的开发者。看一眼URLconf里的这些命名组就知道这是干什么用的了。
备注:
译者: