JuliaPhysics / JuliaPhysics/Unitful.jl

Unitful.Angle?

Open
#216 11 comments 2 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
675
Forks
124
Avg merge
3h 38m
Merged PRs (30d)
1

Description

Perhaps a callback to #38 I think it would be useful to define an Angle "type".

I've hacked this
`const Angle = Union{typeof(1rad),typeof(1.0rad),typeof(1°),typeof(1.0°)}`
I don't see how this would be inherently different from something like `Unitful.Time`.

This is most useful in terms of dispatch. Structures benefit from concrete types.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the callback to issue #38 and the existing Unitful.Time definition. Compare the proposed Angle Union with the needs of dispatch and concrete structure fields, then establish what an accepted Angle type should support before implementing it.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.