Skip to content

fix: implement unimplemented functions for #252 - #695

Open
mithunbabbira wants to merge 1 commit into
typelevel:masterfrom
mithunbabbira:fix-squants-252-unimplemented-functions
Open

mithunbabbira wants to merge 1 commit into
typelevel:masterfrom
mithunbabbira:fix-squants-252-unimplemented-functions

Conversation

@mithunbabbira

Copy link
Copy Markdown

Closes #252

This PR implements all the remaining ??? stubs from issue #252.

New Types Created:

  1. Insolation — Energy per unit area (J/m²)
  2. AbsorbedDoseRate — Dose/specific energy per unit time (Gy/s, Sv/s)
  3. SurfaceTension — Force per unit length (N/m)
  4. DynamicViscosity — Pressure × time (Pa·s)
  5. SpecificVolume — Volume per unit mass (m³/kg)
  6. MolarVolume — Volume per mole (m³/mol)
  7. SubstanceConcentration — Chemical amount per unit volume (mol/m³)

Implemented 9 ??? replacements:

  • Energy/(Area) → Insolation (JoulesPerSquareMeter)
  • Power/(Volume) → PowerDensity (WattsPerCubicMeter)
  • SpecificEnergy/(Time) → AbsorbedDoseRate (GraysPerSecond)
  • Dose/(Time) → AbsorbedDoseRate (SievertsPerSecond)
  • ChemicalAmount/(Volume) → SubstanceConcentration (MolesPerCubicMeter)
  • Force/(Length) → SurfaceTension (NewtonsPerMeter)
  • Pressure*Time → DynamicViscosity (PascalSeconds)
  • Volume/(Mass) → SpecificVolume (CubicMetersPerKilogram)
  • Volume/(ChemicalAmount) → MolarVolume (CubicMetersPerMole)

Intentionally left as ???: Money.scala (5 entries per issue comments — MoneyContext handles these).

Files changed: 14 files (+432, -10)

Implement 9 previously unimplemented ??? stubs from issue typelevel#252:
- Energy/(Area) -> Insolation (new type with JoulesPerSquareMeter)
- Power/(Volume) -> PowerDensity (WattsPerCubicMeter)
- SpecificEnergy/(Time) -> AbsorbedDoseRate (GraysPerSecond)
- Dose/(Time) -> AbsorbedDoseRate (SievertsPerSecond)
- ChemicalAmount/(Volume) -> SubstanceConcentration (MolesPerCubicMeter)
- Force/(Length) -> SurfaceTension (NewtonsPerMeter)
- Pressure*Time -> DynamicViscosity (PascalSeconds)
- Volume/(Mass) -> SpecificVolume (CubicMetersPerKilogram)
- Volume/(ChemicalAmount) -> MolarVolume (CubicMetersPerMole)

New types added: Insolation, AbsorbedDoseRate, SurfaceTension,
DynamicViscosity, SpecificVolume, MolarVolume, SubstanceConcentration

Intentionally left as ???: Money.scala (5 entries per issue comments).

Fixes typelevel#252

This branch has not been deployed

No deployments
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.

implement unimplemented functions & make new types

1 participant