How can we make it easier to experiment with the compiler
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Tue May 25 08:26:25 UTC 2021
On Tuesday, 25 May 2021 at 04:21:08 UTC, Ola Fosheim Grostad
wrote:
> Nobody that has read an introductory book on compilers need a
> comment explaining a function that is looking up a symbol from
> a symboltable. If that is a problem, improve the name, use a
> longer name.
Of course, it is nice to know that that lookup(symbol) can return
null, but that should be visible in the signature.
That can be covered by some "nullable/notnullable" or "optional"
wrapper. Just follow some established coding guidelines for
signatures.
I guess my point is: there is a big difference between
documentation for a public API where the user is not supposed to
read the code and internal relations in an application.
More information about the Digitalmars-d
mailing list