Unable to use function call in function guard

前端 未结 2 917
盖世英雄少女心
盖世英雄少女心 2021-01-12 01:35

I\'m new to Erlang and am trying to program a bounded-buffer problem program. It is almost working, except for making sure the producers don\'t get too far ahead and overwr

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 02:01

    As Geoff Reedy has mentioned there are only few BIFS that are allowed in guards.

    But the guardian parse transform library can be used to call any function in guards.

提交回复
热议问题