These are chat archives for dry-rb/chat

9th
Nov 2015
François Bernier
@fbernier
Nov 09 2015 18:53
Hey, there is this API client at my workplace which uses Hashie::Mash and I don't like it. I am checking out dry-data. Looks like it could replace it right?
Piotr Solnica
@solnic
Nov 09 2015 18:54
@fbernier kinda :) dry-data’s structs require you to define attributes
François Bernier
@fbernier
Nov 09 2015 18:57
yeah that's mostly the part I want to replace.
Looks neat so I'll give it a try!
Piotr Solnica
@solnic
Nov 09 2015 18:58
ok, that’s cool :) remember it’s very alpha though
I have big plans for this lib, but for now I’m busy with other stuff
fwiw it’s been very useful for me already, but there are some rough edges
François Bernier
@fbernier
Nov 09 2015 18:59
yeah that's fine. I'll try helping if I hit any unmet needs or issues.
Piotr Solnica
@solnic
Nov 09 2015 18:59
that’s awesome :)
François Bernier
@fbernier
Nov 09 2015 19:06
Not possible to set a default value to an attribute right?
Piotr Solnica
@solnic
Nov 09 2015 19:08
nope, it’s not this kind of a library
François Bernier
@fbernier
Nov 09 2015 19:10
alright
so if I have those kind of needs, should I be looking into virtus instead ?