DEV Community

Discussion on: Open Source Adventures: Episode 06: How my crystal-z3 compares with bcardiff's crystal-z3

Collapse
 
taw profile image
Tomasz Wegrzanowski

Is it true even if I mark to_unsafe as protected?

To be honest if users call something called to_unsafe they only have themselves to blame. I just didn't want it to be called expr as that might encourage segfault-prone code.

Collapse
 
asterite profile image
Ary Borenszweig

Hm, good point. Apparently it doesn't work if to_unsafe is protected or private, but I think it should. I'll ask to change that.