ngs-lang / ngs

Next Generation Shell (NGS)
https://ngs-lang.org/
GNU General Public License v3.0
1.4k stars 43 forks source link

Allow parameter patterns, generalization of parameter types #531

Closed ilyash-b closed 5 months ago

ilyash-b commented 2 years ago

Related: #78

Now:

        F on_event(chc:ChannelHandlerContext, ev:ChannelEvent) {
            guard ev == ChannelEvent::active
            log("active")
        }

Should be:

        F on_event(chc:ChannelHandlerContext, ev:ChannelEvent::active) {
            log("active")
        }

Note that ChannelEvent::active is an instance, not a type

ilyash-b commented 5 months ago

Already done