<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 2:06 AM, Andrew Barnert <span dir="ltr"><<a href="mailto:abarnert@yahoo.com" target="_blank">abarnert@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><span class=""><div>On Sep 16, 2015, at 21:07, John Wong <<a href="mailto:gokoproject@gmail.com" target="_blank">gokoproject@gmail.com</a>> wrote:</div><div><br></div><blockquote type="cite"><div>So here I am, thinking, what if we can do this?</div><div><br></div><div>response(</div><div>    ["DescribeDBSnapshotsResponse"]</div><div>    ["DescribeDBSnapshotsResult"]</div><div>)</div></blockquote><div><br></div></span><div>This already has a perfectly valid meaning: you have a list of one string, you're indexing it with another string, and passing the result to a function. If this isn't obvious, try this example:</div><div><br></div><div>    frobulate(['a', 'e', 'i', 'o', 'u'][vowel])</div><div><br></div><div>So, giving it a second meaning would be ambiguous.</div></div></blockquote><div><br></div><div>Great catch... I did not even consider this. You are right.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div><br></div><div>Also, there's already a perfectly good way to write what you want. (Actually two, because square brackets continue the exact same way parens do, but I wouldn't recommend that here.)</div><div><br></div><div><div><font color="#000000"><span style="background-color:rgba(255,255,255,0)">    (response</span></font></div><div><font color="#000000"><span style="background-color:rgba(255,255,255,0)">     ["DescribeDBSnapshotsResponse"]</span></font></div><div><font color="#000000"><span style="background-color:rgba(255,255,255,0)">     ["DescribeDBSnapshotsResult"]</span></font></div><div><font color="#000000"><span style="background-color:rgba(255,255,255,0)">    )</span></font></div></div></div></blockquote><div> </div><div>Thank you all. I think I should have noticed (response[..]) would work...</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><blockquote type="cite"><div></div></blockquote></div></blockquote></div><br></div></div>