z-pattern-matching/z

Multi-Character global condition match failure

Open

#61 创建于 2020年1月28日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (1,714 star) (78 fork)batch import
bughelp wanted

描述

I'm running into what may be a conceptual issue rather than an actual issue. Are multi-character match variables supported?

E.g.

let string = "test"; match(string)( (s) => { console.log(s); } )

Executes as expected logging

test

but

let string = "test"; match(string)( (str) => { console.log(str); } )

generates no output.

贡献者指南