JuliaPhysics / JuliaPhysics/Unitful.jl

Confusing printing of types

Open
#540 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
675
Forks
124
Avg merge
3h 38m
Merged PRs (30d)
1

Description

```
julia> using Unitful: FreeUnits, s, ๐“

julia> typeof(s)
FreeUnits{(s,), ๐“, nothing}

julia> s isa FreeUnits{(s,), ๐“, nothing}
false
```

I guess there's a distinction between `FreeUnits` and `Unit`, but they both print the same way.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Julia REPL example from the issue and inspect how FreeUnits and Unit are displayed. The work is done when their printed representations clearly distinguish the two types and the example no longer appears contradictory.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.