arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
723 stars 32 forks source link

`pi` in Quantity values literals #1521

Open drkameleon opened 10 months ago

drkameleon commented 10 months ago

Right now, pi is used quite a few times in different Quantity-related unit-tests (albeit, commented-out - since it's not working practically):

https://github.com/arturo-lang/arturo/blob/6e75d0e238dcf623fb433e57b7fa1c115e0923ae/tests/unittests/quantities.art#L4361-L4364

pi is used in several compile-time definitions too. However, parsing it as part of a Quantity literal is a tricky topic and would generally go against our parsing rules for Quantities.

So, the point is here actually (to phrase it in a different way): how should we do so that we can use pi as part of a Quantity value's value, but without embedding it, syntax-wise, within the literal itself?

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.