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

"M-expression" syntax #3

Open
lukego opened this issue Feb 13, 2021 · 0 comments
Open

"M-expression" syntax #3

lukego opened this issue Feb 13, 2021 · 0 comments

Comments

@lukego
Copy link

lukego commented Feb 13, 2021

On a scale from one to ten, how bad of an idea does this kind of syntax seem?

•10k3Ω±1% <=> #q(10.3 +/- 1 % kiloohm)

where bullet (•) would be an (arbitrarily chosen) reader macro dispatch character that parses an unparenthesized quantity.

This is probably a question of personal taste above all but I am curious what others would think. I have been having a bit of trouble cross-referencing constants in source code with values in datasheets and I think it's partly the different representations of the numbers, and particularly e.g. each one putting the order of magnitude (k/m) on a different side of the tolerance, making them "read aloud" in different ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant