Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

in raku, that’s spelled

  subset OneToTen of Int where 1..10:




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

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


In Common Lisp it's

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: