red-blox / zap

A lightning fast networking solution for roblox.
https://zap.redblox.dev
MIT License
95 stars 15 forks source link

Fix nested maps #93

Closed Ketasaja closed 4 months ago

Ketasaja commented 4 months ago

Removes shadowing from generated code, allowing for events like:

event test = {
    from: Client,
    type: Reliable,
    call: ManyAsync,
    data: map { [
        map { [string]: boolean }
    ]:
        map {
            [boolean]:
            string[][][]
        }
    }[]
}

Ideally there'd be an integer suffix instead of _v_v_v_v_v_v_v, this is a quick fix to hold over until the rewrite.

sasial-dev commented 4 months ago

Oh. My. God - you are awesome, thank you for doing this!