JuliaPhysics / JuliaPhysics/Unitful.jl

Should whitespace be syntactically important in `u_str` macro?

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

Description

I didn't find any example of products of units with u_str in the docs. There are lots of examples like `4u"m/s"` but it would be nice to see something like `3u"N*m"`. I kept trying `3u"N m"` expecting it to work.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing u_str documentation and examples, especially the 4u"m/s" form, then inspect how products such as N*m are represented. Clarify whether whitespace in 3u"N m" is supported or should be documented as invalid, and update the relevant example or guidance when the expected behavior is established.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.