feat: Add Support for Accessing Index Values Using the Dot Operator#107
feat: Add Support for Accessing Index Values Using the Dot Operator#107ckganesan wants to merge 3 commits intoskx:masterfrom
Conversation
|
@skx : Could you please review this PR? Thanks in Advance Ganesan |
|
If this only covered hash-keys I'd say "that's great, thanks". But looking at
But new features? I feel like I've done enough - I did consider adding support for structs/classes, but decided that it would be a bit annoying and ignored the idea. I'm happy to see bug reports from people, and you've submitted several which have been really useful and well-spotted. But I think new features are perhaps better off made against your own fork - we probably have different ideas on what is useful, and what is sane. So in my case I'd say hash-indexes? Yes. Array-indexes? No. If you reworked it to only do that I'd merge, but honestly if you're planning more syntax changes and additions you might as well just take your own copy/fork and run with it. I don't want to stop anybody experimenting or learning, but given that I don't use this repository adding random things to it - short of clear error-fixes - is perhaps not so useful. |
Enhanced the codebase to enable index value access through the dot operator.
Code
Output