Skip to content

(feat) also output full parameters functions aliases (/2 /3 ...) #349

@sdancer

Description

@sdancer

currently the compiler generates this functions, (useful for composition on hamler):

'and'/1 =
fun(_0) ->
fun(_1) ->
let <_2, _3> = <_0, _1>
in case <_2, _3> of
<'true', 'true'> when 'true' ->
'true'
<_100, _101> when 'true' ->
'false'
end

can have it generate the /2 alias too, something like (useful for calling hamler from other langs), hamler itself wouldn't use or call these, although it could as a compiler optimization

'and'/2 =
let <_2, _3> = <_0, _1>
in case <_2, _3> of
<'true', 'true'> when 'true' ->
'true'
<_100, _101> when 'true' ->
'false'
end

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions