Skip to content

Conversation

ChrisRackauckas
Copy link
Member

The recent changes that added a problem mapping interface really opened up our opportunities for backend variable naming options, because now we do not expect the users to ever have to know the names that we are creating. In order for sane debugging, it's good to create variable names that look nice and close enough, but the user doesn't interact directly with said symbols, so we are free to choose unicode characters. However, since Julia doesn't allow punctuation characters, we do have to make some concessions.

Subsystem Referencing

Looking at http://xahlee.info/comp/unicode_math_operators.html, the ₊ looked the closest to a period, since we aren't allowed to use punctuation. Also it kind of makes sense because it's a form of unioning two symbols, so I think that works.

Order Lowering

For lowering, I chose https://www.fileformat.info/info/unicode/char/02cd/index.htm since ˍ looks fairly close to _ but is weird enough that we have a vanishingly low probability of collisions.

@ChrisRackauckas ChrisRackauckas merged commit d82c0c8 into master Apr 13, 2020
@ChrisRackauckas ChrisRackauckas deleted the naming branch April 13, 2020 11:12
@ChrisRackauckas
Copy link
Member Author

@YingboMa

@asinghvi17
Copy link
Contributor

asinghvi17 commented May 4, 2020

The Unicode underscore makes 2nd order ODEs really annoying to give initial conditions for (since you do have to provide the initial value of the first derivative).

@ChrisRackauckas
Copy link
Member Author

Users shouldn't be directly specifying the names. D(x) should just work instead.

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

Successfully merging this pull request may close these issues.

2 participants