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

possible shortcut vars #130

Closed
tehn opened this issue Jun 7, 2019 · 2 comments
Closed

possible shortcut vars #130

tehn opened this issue Jun 7, 2019 · 2 comments
Labels
design Issue needs design consideration

Comments

@tehn
Copy link
Member

tehn commented Jun 7, 2019

for use as a simple remote, we transmit the string input and output quite a lot.

perhaps we should create global aliases i and o respectively? though user error due to redefinition would probably make this a bad decision. thoughts?

@tehn tehn added the design Issue needs design consideration label Jun 7, 2019
@trentgill
Copy link
Collaborator

i'm inclined to leave as is. i don't think throughput is the limiting factor for usb communication and the scripts are already going to be quite terse. collisions w i seem likely even though it's rarer than in C. makes me realize i don't know the scoping rules properly in lua, so not sure if an in-function use would trash the alias globally, or just for the duration of a fn call?

perhaps we can consider this a little later on once we've a better picture of use cases?

@tehn
Copy link
Member Author

tehn commented Jun 10, 2019

agreed!

@tehn tehn closed this as completed Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Issue needs design consideration
Projects
None yet
Development

No branches or pull requests

2 participants