Re:A small British firm shows that software bugs aren't inev...
by andy_ppp on Thursday October 22, 2015 @06:52AM
(#10431481)
While not integer/number specific I like the idea of Guards in Elixir:
[ Parent
| on HN ]
Re:A small British firm shows that software bugs aren't inev...
by arethuza on Thursday October 22, 2015 @07:45AM
(#10431629)
That's pretty nice - like CLOS multiple dispatch with arbitrary predicates rather than types.
Are there any restriction on what the code in the guards can do?
Re:A small British firm shows that software bugs aren't inev...
by lectrick on Thursday October 22, 2015 @07:59AM
(#10431673)
Yes.
But the guard code are just macros, so... ;)
But I do believe that Erlang underneath does have actual limits.
Re:A small British firm shows that software bugs aren't inev...
by lifeisstillgood on Thursday October 22, 2015 @07:20AM
(#10431540)
That's it - going to set aside some time for getting Elixr on my bare competence skill set. I love that