4 ms·
Tamale: An Erlang-Style Pattern-Matching Library for Lua
- vvanders 10y agoThings like this are why I like Lua so much. It can be easily extended into just about any type of programming paradigm to best fit your problem domain.
- spinlock 10y agoI'm just starting to get into Lua (thanks HammerSpoon) and I feel like it's a 1.0 or grown up javascript. You have a syntax that isn't broken and the projects tend to be more interesting (like this one) rather than: I re-implemented a Unix tool that's been around since the 60's and mine is a million times slower!
- macintux 10y agoI worry a bit when I see something like this that people will think Erlang is even clunkier than it actually is. Erlang pattern matching is sufficiently integral to the language that it effectively wouldn't exist without the feature. It's so much more powerful than "here's a list of data shapes, pick one." (This concern holds true for a lot of other attempts to take pieces of Erlang and incorporate them into other environments too. Erlang's features are highly complementary to each other, the synergy is the language.)
- digitalzombie 10y agoYup, you take away pattern matching and you can't loop at all in Erlang.
- always_good 10y agoJust for fun, I didn't realize that the singular form of "tamales" was "tamal" until I moved to Mexico. In Texas, we'd say "I'll have another tamale".