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

Add more intuitive conversion delimiters #86

Open
Phanabani opened this issue Aug 8, 2022 · 0 comments
Open

Add more intuitive conversion delimiters #86

Phanabani opened this issue Aug 8, 2022 · 0 comments
Assignees
Labels
change A change to an existing feature

Comments

@Phanabani
Copy link
Owner

Phanabani commented Aug 8, 2022

Current situation

Currently, we only accept conversion strings like

  • 5cm > in
  • 3pm > seoul
  • 3pm dubai > seoul

This isn't entirely intuitive, especially for the time conversions. Even I, as the creator of Sandpiper, get confused about how to use this.

Alternative syntaxes

I suggest the following two alternative syntaxes which should be able to be added backwards-compatibly:

->

This is more of a bandage on top of the existing >, to change the implication from a greater-than relationship to a from-to relationship.

  • 5cm -> in
  • 3pm -> seoul
  • 3pm dubai -> seoul

to

to is more linguistically intuitive and would probably be the new preferred way to do conversions. It should be noted that the use of alphabet characters does introduce the potential for parsing ambiguities, and I don't know the implications of that yet. However, I think the benefits of adding this are very important for UX reasons.

  • 5cm to in
  • 3pm to seoul
  • 3pm dubai to seoul

Add in?

This is getting into dangerous parsing-ambiguity territory, but it could be even more intuitive to add in:

  • 5 in cm to in
  • 3pm to seoul
  • 3pm in dubai to seoul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change A change to an existing feature
Development

No branches or pull requests

1 participant