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.

貢獻者指南

Multi-Character global condition match failure · z-pattern-matching/z#61 | Good First Issue