aeternity / aesophia

Stand alone compiler for the Sophia smart contract language
https://docs.aeternity.com/aesophia
ISC License
52 stars 19 forks source link

Provide meaningful symbols for lambdas #425

Open radrow opened 2 years ago

radrow commented 2 years ago

Currently lambdas do not receive any names in the symbols field of the generated code. While this does not matter for normal development, it can be useful to identify them while in debug mode.

Proposal: fun#$(ParentFunName)#$(LineNumber)#$(ColumnNumber), eg

namespace Ns =
  function funkcja() = () => ()

would give the lambda the name fun#.Ns.funkcja#2#23