-
Is there a list of units? The documentation states I found out by trial and error that
Then I tried This is just one example, but you might understand my confusion. I checked the source code and I could find some answers there, but I think the documentation could be more forthcoming. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, thanks for raising these issues. I've now added It would definitely be good to make the list of supported units available in the documentation, perhaps by automatically generating documentation from the source code. I might take a look at implementing this soon. The reason that converting to |
Beta Was this translation helpful? Give feedback.
Hi, thanks for raising these issues. I've now added
light_speed
andlightspeed
units; they will be in the next release. As you've probably worked out all supported units are listed in https://github.com/printfn/fend/blob/main/core/src/units/builtin.rs, and built-in functions and some other constants can be found in https://github.com/printfn/fend/blob/main/core/src/ast.rs#L747.It would definitely be good to make the list of supported units available in the documentation, perhaps by automatically generating documentation from the source code. I might take a look at implementing this soon.
The reason that converting to
c
doesn't work is that I've implementedc
to always expand to its value…