This issue keeps track of little things that are not very important so it's easy to forget about them, but they needs to be fixed (sooner the better)
~Do not use compiler.Error outside of parser and analyzer, in desugarer and irgen use simple Go's errors (any error at that layer is bug in compiler, so no need for user friendly error with nevalang source code location)~
Make sure all stdlib components follow same pattern with port names sig/data -> res/err
~It's impossible to unit test everything in desugarer because sourcecode.Scope is not interface. We need to create interface and mock it~
New -> Emit, NewV2 -> ??? (Trigger/Dispatch/Activate/Pulse/???)
This issue keeps track of little things that are not very important so it's easy to forget about them, but they needs to be fixed (sooner the better)
compiler.Error
outside of parser and analyzer, indesugarer
andirgen
use simple Go's errors (any error at that layer is bug in compiler, so no need for user friendly error with nevalang source code location)~sig/data -> res/err
desugarer
becausesourcecode.Scope
is not interface. We need to create interface and mock it~New
->Emit
,NewV2
-> ??? (Trigger/Dispatch/Activate/Pulse/???
)