JuliaPhysics / JuliaPhysics/Unitful.jl

Add docs for units for function args

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

Description

Hi,

This is an amazing package but I'm trying to figure out how to specify function signatures:

```
foo(t::Temperature, r::Radian) = (2t, 5r)
foo(20°C, 1.5rad)
```
The above is incorrect but I'm wondering what is the best way to define type parameters for things like any numeric value that is a temperature or any numeric value that is in Celcius.

Glen

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.