On Mon, Mar 17, 2014 at 11:33:38PM +0100, Robert Schadek wrote: > On 03/17/2014 11:24 PM, H. S. Teoh wrote: > > On Mon, Mar 17, 2014 at 11:16:12PM +0100, Robert Schadek wrote: > >> replace .. with : to make lexing easier, please > > auto b = arr[(someCondition) ? w:x : y:z]; > > > > :-( > > > > > > T > > > Thats a parsing problem. > > 1..1 makes you think you got a prefix of a float 1. but actually you > got an int slice_operator int. If there where no .. flex like > generator could handle D, at least as far as I can see it.
Point. But still, syntax that makes lexing or parsing hard -- that scores against this DIP. T -- Why can't you just be a nonconformist like everyone else? -- YHL
