News for hackers. Stuff that matters.
Re:Use Your Type System by librasteve on Thursday July 24, 2025 @04:11PM (#44675454)
in raku, that’s spelled

  subset OneToTen of Int where 1..10:
Re:Use Your Type System by yoz-y on Thursday July 24, 2025 @07:52PM (#44677776)
Off topic: do you use raku in day to day life? I tried learning it but perl5 remains my go-to when I just need to whip something up
Re:Use Your Type System by librasteve on Friday July 25, 2025 @02:57AM (#44680380)
yes … I find it as useful as I used to find perl (spent 4 years as a perl coder back in the day) and use for ad hoc scripts … data migration, PDF/CSV scraping, some LLM prompt engineering in a business setting, wrote a module to manage/install Wordpress on EC2 for example

  raws-ec2 —eip —nsu launch
  raws-ec2 —q connect | pbcopy
  
https://raku.land/zef:librasteve/CLI::AWS::EC2-Simple

mainly I find Raku (and the community) much -Ofun

Re:Use Your Type System by tmtvl on Friday July 25, 2025 @07:39AM (#44682036)
In Common Lisp it's

  (deftype One-To-Ten ()
    '(Integer 1 10))