rokucommunity / rokucommunity/brighterscript
Runtime type checking for function parameters
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
we could theoretically have code like
function myFoo(arg1 as node, arg2 as string, arg3 as Group, arg4 as myNameSpace.NetModule
and the transpiler/thingy could inject a line of code below the function definition to ensure the runtime type.
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 with the proposed function-parameter syntax in the issue and clarify how the transpiler should handle node, string, Group, and namespaced types. Define the runtime-checking behavior and failure cases for the four example parameters; the issue names no files or tests, so the relevant transpiler entry point and validation tests must first be identified.
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
- Needs clarification
- Newbie friendliness
- 20/100