From: Brian I. <in...@tt...> - 2002-09-04 00:23:21
|
I've been wondering for the past couple weeks if supporting tabs in indentation is the right way to go. My general feeling is this: we have gone over all of the issues concerning indentation in great detail. We've basically determined that there's no good way to deal with tabs implicitly. We've created the #TAB directive "just in case". We did the #TAB thing because we were fairly sure people would want it. But what if they don't? Then we'd forever have to support something that we really didn't need to. I'm in favor of taking the strong stance up front, and then using #TAB down the road if we have to. --- Here's a little rationale. Let's say that everyone who is past day two with YAML, knows that we *only* use spaces for indentation. They adjust. And I think they will. That leaves us with the "config file" use case. Many configgers will not know that their config file is YAML. So they will put in tabs and get an error. They can get around the errors by putting --- #TAB:8 at the start, but that kind of blows YAML's cover, as it were. So why not just issue an error message to the effect of: "No tabs in this config file please" --- One other point to make, none of the implementors, (except prehaps Neil?), have bothered to add TAB support. Steve Howell would call that a "smell". Something stinks about #TAB, so people are avoiding it. In closing, #TAB is not bad at all if we need to support tabs. I say maybe we don't. Do we? Cheers, Brian |
From: Ryan K. <rk...@pa...> - 2002-09-04 04:18:04
|
On 2002.09.03, Brian Ingerson <in...@tt...> wrote: > So why not just issue an error message to the effect of: > > "No tabs in this config file please" I like this. They can always implement their own tab rules: $config_txt = read_config_file(); $config_txt =~ s/\t/ /g; return YAML::Load($config_txt); - Ryan King |
From: why t. l. s. <yam...@wh...> - 2002-09-04 06:40:49
|
Brian Ingerson (in...@tt...) wrote: > > I'm in favor of taking the strong stance up front, and then using #TAB down > the road if we have to. > > --- > > So why not just issue an error message to the effect of: > > "No tabs in this config file please" > Yep. You said it. I'm nodding like crazy as I eat my bowl of cereal. Maybe tabs later. Too much to take care of now. _why |