▲ | librasteve 5 days ago | |
This is a great article and I like that you are highlighting the benefits of Dimensions as Types. While Raku is less popular than Python, it does have deep roots in Haskell and strong types (the first Raku / Perl6 parser - PUGS - was written in Haskell and all the early devs were encouraged to learn Haskell first). Similar concepts are used in these Raku modules... which provide dimensional analysis and marry types to dimensions. - https://raku.land/zef:librasteve/Physics::Measure - https://raku.land/zef:librasteve/Physics::Unit I had some fun with making this example of using these Raku modules with Jupyter https://rakujourney.wordpress.com/wp-content/uploads/2023/08... [disclaimer: I am the author of these modules] Raku is also good at Slangs (Sublanguages) and unicode, so these tools can be used in a very intuitive way:
|