From: Will D. <wi...@wj...> - 2006-11-03 19:25:08
|
On Nov 3, 2006, at 9:03 AM, Brian Griffin wrote: > Donald G Porter wrote: >> Brian Griffin wrote: >>> TIP #292: ALLOW UNQUOTED STRINGS IN EXPRESSIONS >>> ================================================= >> I think this is basically a good idea, though it must be done >> carefully. This topic came up in discussions about TIP 282. See >> those messages for some things to consider. I'd be happier if the >> two TIPs were rolled into one. > > This does make sense. I also like TIP 282, but the enhanced syntax > should be disallowed in the conditional commands. The last thing I > want to see is "if {a = $b}" executing without error. This is a > good argument for somehow splitting the semantics of expr from > conditional statements. Alternatively, if one used ":=" as the assignment operator for TIP 282 there'd be no active harm in using the enhanced syntax in "if" and "while". You *could* write "if {a := $b}" if you really wanted to, but you'd be much less likely to do it accidentally. ------------------------------------------------------------------ will -at- wjduquette.com | Catch our weblog, http://foothills.wjduquette.com/blog | The View from the Foothills |