News for hackers. Stuff that matters.
Re:Regex character "$" doesn't mean "end-of-string" by lizmat on Friday March 22, 2024 @04:51AM (#39788639)
In Raku, if you want to go typed, you can! It's called "gradually typed".

my Int $a = 42; # ok

my Int $a = "foo"; # Type check failed in assignment to $a; expected Int but got Str ("foo")

Re:Regex character "$" doesn't mean "end-of-string" by emporas on Friday March 22, 2024 @09:07AM (#39790329)
Very nice, good to know. Yes i know gradual typing, Python has a form of that i think. I will check out Raku at some point, the type system will not go unnoticed. I didn't even know it had one!