rebar3_hank icon indicating copy to clipboard operation
rebar3_hank copied to clipboard

Identify nif functions checking the -nifs(…) attribute

Open elbrujohalcon opened this issue 1 year ago • 0 comments

OTP25 introduced a new attribute to identify functions overridden by nifs: -nifs(…).. Hank currently identifies them by their calls to erlang:nif_error/2.

Describe the solution you'd like

I would like Hank to stop inferring which functions are overridden by nifs and just use -nifs(…) to figure that out.

Describe alternatives you've considered

Hank might keep also inferring the overrides by checking erlang:nif_error/2 but I think it's better to enforce good practices and get devs to include -nifs(…) in their modules, even if they just do it to silence Hank's warnings.

elbrujohalcon avatar Jan 30 '23 09:01 elbrujohalcon