jnwhiteh / go-luapatterns

A pure Go implementation of Lua pattern matching
Other
23 stars 3 forks source link

Remove boolean results from library functions #2

Open jnwhiteh opened 14 years ago

jnwhiteh commented 14 years ago

There is no need for the boolean results from the library functions, specifically Match, since it can just return the list of captures or nil. As for Find, I'm not sure what makes the most sense, but we can also do []int [][]byte and have the same behavior that avoids magic values.