dattrs 1.0.1
D classes with less boilerplate
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
dattrs
dattrs is a riff on Python's attrs. It removes the need for writing boring boilerplate class constructors.
Use it like so:
import dattrs
class wibble
{
mixin dattrs!(["donkey"], string);
}
auto w = new wibble("hello");
writeln(w.donkey); //"hello"
- Registered by Samathy Barratt
- 1.0.1 released 4 years ago
- samathy/dattrs
- MIT
- Copyright © 2020, Samathy Barratt
- Authors:
- Dependencies:
- none
- Versions:
-
2.1.0 2020-Dec-31 2.0.0 2020-Dec-31 1.0.1 2020-Dec-31 1.0.0 2020-Dec-31 ~main 2020-Dec-31 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
18 downloads total
-
- Score:
- 0.1
- Short URL:
- dattrs.dub.pm