rokucommunity / rokucommunity/brighterscript
Add generics support in the type system
Open
Nobody has claimed this yet.
New Language Feature
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
Other languages (like TypeScript) have generics support. The BrighterScript type system should support them as well. For example:
function GetFirstItem<ListType>(list as List<ListType>)
firstItem = list.First() as ListType
return firstItem
end function
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
Start by locating the BrightScript type-system implementation and its existing parsing or type-checking tests. Compare the requested generic function example with current type syntax, then define support for generic type parameters and confirm the example is accepted and correctly typed.
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
- 35/100