GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
503 stars 55 forks source link

feat: get rid of optional chaining #1002

Closed GeopJr closed 2 weeks ago

GeopJr commented 2 weeks ago

Optional chaining, what a concept...

What optional chaining should do, is:

nullable?.param => nullable != null ? nullable.param : null

Or at least that's what I was expecting. Turns out that's not always the case. Sometimes it causes segfaults :shrug:

Let's just get rid of optional chaining everywhere