rokucommunity / rokucommunity/brighterscript
support as keyword for primitive conversions
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
would be great to not have to do
aa[currentIndex as string] = thing
instead of
if currentIndex <> invalid
text = str(currentIndex).trim()
aa[text] = thing
end if
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides examples using as string, str(currentIndex), and trim() but names no files or tests. Start by locating the parser and type-conversion handling for as and primitive values, then determine the intended behavior for invalid values and indexing. Done means the requested conversion syntax is accepted and covered by tests for the shown cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100