Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

A study on the type annotation system of nushell.

License

Notifications You must be signed in to change notification settings

amtoine/nu-type-annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

nu-type-annotations

A study on the type annotation system of nushell.

run the module

use types.nu
types run

Warning there will be a lot of errors thrown in the terminal, that's normal!

the results

value f-bool f-int f-float f-number f-filesize f-duration f-date f-range f-string f-record f-list f-block f-closure f-nothing f-binary f-cellpath f-fullcellpath f-any f-none type
true 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🟢 bool
123 🔴 🟢 🟢 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 int
3.14 🔴 🔴 🟢 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 float
10Mb 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 filesize
10us 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 duration
2019-05-10T09:59:12-07:00 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 date
1..10 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🟢 range
'string' 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 string
{} 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🔴 🟢 🟢 🟢 🔴 🟢 🟢 🟢 🟢 record
[] 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🟢 list
{||} 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🟢 🟢 🔴 🟢 🟢 🟢 🟢 closure
$nothing 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 🟢 🟢 nothing
0b01101001 🔴 🟢 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 int
$.a.b.c.0 🔴 🔴 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🔴 🔴 🔴 🔴 🟢 🔴 🟢 🟢 🟢 🟢 cell path

Note generated with

types run
| to md --pretty
| str replace --all "false" ":red_circle:"
| str replace --all "true" ":green_circle:"

and manually fixing the "true" and "{||}" values

About

A study on the type annotation system of nushell.

Topics

Resources

License

Stars

Watchers

Forks

Languages