These are chat archives for dry-rb/chat

26th
Jan 2016
Piotr Solnica
@solnic
Jan 26 2016 18:44
so, I’m considering dry-data => dry-types rename, please chime in if you agree/disagree dryrb/dry-data#21
Piotr Solnica
@solnic
Jan 26 2016 23:13
https://gist.github.com/solnic/43ba441fd1fa0dfa715c <= this will work ~next week :D
Tim Riley
@timriley
Jan 26 2016 23:18
Nice :)
One thing that confuses me at first glance over those macros is maybe
Piotr Solnica
@solnic
Jan 26 2016 23:19
it is what it is, it’s literally “maybe it’s gonna be there and maybe it’ll meet criteria"
it looks very natural for me, but I dunno, I might be biased or something
Tim Riley
@timriley
Jan 26 2016 23:19
So it’ll be fine if the key is absent? Or is it rather that it’ll allow a null value?
Piotr Solnica
@solnic
Jan 26 2016 23:20
no, absent key == optional(:key_name)
Tim Riley
@timriley
Jan 26 2016 23:20
right
Piotr Solnica
@solnic
Jan 26 2016 23:20
as in, allowing absence of a key
Tim Riley
@timriley
Jan 26 2016 23:20
yeah
I figured that optional(:key) was still there
Piotr Solnica
@solnic
Jan 26 2016 23:20
it is there
but it has a different meaning
it’s a feature
:D
Tim Riley
@timriley
Jan 26 2016 23:20
yeah
I was thinking that optional would read more clearly to me than maybe, but that’s a conflict in naming/behaviour
Piotr Solnica
@solnic
Jan 26 2016 23:21
anyhow, as you know, I went to sleep :joy:
Tim Riley
@timriley
Jan 26 2016 23:21
yeah, sorry, didn’t mean to keep you up
maybe works well, especially once you learn what it does the 1st time :)
Piotr Solnica
@solnic
Jan 26 2016 23:21
github kept me up, but now I’m really going