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
Update internal use of decimal
to float
#10333
Conversation
`impl Display` updated separately
Separate commit as this may affect tooling if we have a location where `SyntaxShape::to_string` or similar is read.
Update on the impact of changing the display name of Affected would be the |
@sholderbach - is the type/shape name the user types now |
It already supported both this PR does not yet remove the latter. |
soon 😏 |
loving it 💪 |
# Description We made the decision that our floating point type should be referred to as `float` over `decimal`. Commands were updated by nushell#9979 and nushell#10320 Now make the internal codebase consistent in referring to this data type as `float`. Work for nushell#10332 # User-Facing Changes `decimal` has been removed as a type name/symbol. Instead of ```nushell def foo [bar: decimal] decimal -> decimal {} ``` use ```nushell def foo [bar: float] float -> float {} ``` Potential effect of `SyntaxShape`'s `Display` implementation now also referring to `float` instead of `decimal` # Details - Rename `SyntaxShape::Decimal` to `Float` - Update `Display for SyntaxShape` to `float` - Update error message + fn name in dataframe code - Fix docs in command examples - Rename tests that are float specific - Update doccomment on `SyntaxShape` - Update comment in script # Tests + Formatting Updates the names of some tests
Description
We made the decision that our floating point type should be referred to as
float
overdecimal
.Commands were updated by #9979 and #10320
Now make the internal codebase consistent in referring to this data type as
float
.Work for #10332
User-Facing Changes
decimal
has been removed as a type name/symbol.Instead of
use
Potential effect of
SyntaxShape
'sDisplay
implementation now also referring tofloat
instead ofdecimal
Details
SyntaxShape::Decimal
toFloat
Display for SyntaxShape
tofloat
SyntaxShape
Tests + Formatting
Updates the names of some tests