Skip to content

codesections/RakuRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic record type

Usage:

use Record;

record User {
   has Str $.name;
   has Int $.age;
}

User(:name<Author>:age<42>);

Record offers no validation beyond Raku's normal type-checking; fields are not required unless marked with is required.

Compare with Data::Record, which offers a less-minimalist alternative with more advanced validation.

About

A basic record type for Raku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages