RFC: Tau constant#52
Conversation
|
As a team I think we are on the fence about whether we should add For now, I'd like to see more justification behind why |
|
I understand for example that C library includes more 'helper' numbers and other I would understand having a more comprehensive update to constants with a motivation for more things like |
|
I'm not going to contest that it's a small addition with marginal improvements in readability. If the use case isn't substantial enough to warrant inclusion if Luau is trying to remain minimal in this regard then I understand. For what its worth though, I would like to note that many other languages (specifically Java, Python, and .NET) have included tau constants in their standard libraries which indicates that there is a measure of support for inclusion of this constant in programming languages. Though I understand those languages don't share the same goal of minimalism as Luau. I think that the inclusion of a tau constant would be a very minimal change a for small increase in readability in some specific places and I think that could be worth it. |
I think this just comes from this strange effort to push for I think it's interesting to note that Rust, which is much more open to derivable math constants includes 9 ratios based on As an additional note, |
|
As a general principle, we include things into the Luau standard library because they are either actually critical for accomplishing some task, or at least they save users a bunch of work in certain common scenarios. tau does not meet that bar. Every programmer who has ever worked with pi is familiar with situations in which pi must be multiplied by two. This isn't going to make anything more readable. |
Rendered