Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom keywords to make it easy for children in different languages to contact typescript for simple computational experiments #31256

Open
5 tasks done
Akimotorakiyu opened this issue May 5, 2019 · 2 comments
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@Akimotorakiyu
Copy link

Akimotorakiyu commented May 5, 2019

Search Terms

custome keywords

Suggestion

Allow custom keywords to make it easy for children in different languages to contact typescript for simple computational experiments

This requires a keyword standard in different language environments.
Unfortunately, no standardization organization has set standards for it, and because of the inaccuracy of translation, there is not even a recognized standard.

Use Cases

Let children play with programming.
eg:
lingascript (Multilingual Javascript, based on Typescript)
chinese keywords typescript, use cases of chinese keywords typescript
Japanese keyword javascript nadesiko3

Examples

//English
function sum(a:number,b:number):number{
    return a+b;   
}
//Chinese
函数 加和( a:数字, b:数字) :数字{
    返回 a+b
}
//Russian
функция суммировать( a:цифра, b:цифра) :цифра{
    возвращение a+b
}
//Japanese
関数  和を加える( a:数字, b:数字) :数字{
    戻る a+b
}

... etc.

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.
@weswigham weswigham added Suggestion An idea for TypeScript Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature labels May 8, 2019
@gasolin
Copy link

gasolin commented May 16, 2019

Could achieve via wrapping the keyword mapping functions to a separate file, like this gasolin/lingascript#18

@Akimotorakiyu
Copy link
Author

Akimotorakiyu commented May 16, 2019

This requires a keywords standard in different language environments.
Unfortunately, no standardization organization has set standard for it, and because of the inaccuracy of translation, there is not even a recognized standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants