natalie-lang / natalie

a work-in-progress Ruby compiler, written in Ruby and C++
https://natalie-lang.org
MIT License
931 stars 61 forks source link

Make StringObject::m_encoding member non-null #2176

Closed seven1m closed 2 months ago

seven1m commented 2 months ago

I'm doing some refactoring in another branch and started getting a null dereference panic somewhere in the process. Tracking it down shouldn't be too hard, but it also made me realize we could live in a world without null, where possible. This is my first experiment with that.