Type helper cleanup, library reorganizations - #21
Conversation
324ec97 to
8818d8f
Compare
|
@natebosch it's big, but it's really nice CC @jakemac53 |
You can reuse the same name – `e` in our case – at each level It makes reading the generated code a bit harder – so use tools
|
@natebosch – rebased on latest |
natebosch
left a comment
There was a problem hiding this comment.
Would definitely be easier to review in smaller increments... but overall looks good.
There was a problem hiding this comment.
[nit] why the blank lines? (just realized they've been in there from the start...)
There was a problem hiding this comment.
A bit easier to read the source and the parsed markdown.
There was a problem hiding this comment.
[nit] maybe a comment or a more descriptive variable name?
There was a problem hiding this comment.
it feel odd that there is both a _coreHelpers and a CoreHelper()...
There was a problem hiding this comment.
Done. Also caught a bug! – CoreHelper should be in _coreHelpers!
There was a problem hiding this comment.
TypeHelper – would you prefer e?
There was a problem hiding this comment.
Maybe just h for 'helper' coming from _allHelpers -> or change it to _allTypeHelpers and keep th
There was a problem hiding this comment.
[nit] could be typeArguments or typeArgumentsOf... get doesn't add value most of the time.
There was a problem hiding this comment.
[nit] Is the comment adding new information?
BTW a pattern I've seen Matan use with TypeChecker is to name the variable like $String which makes the usage look nicer than repeating TypeChecker
There was a problem hiding this comment.
Uh...I think this is deleted code...
There was a problem hiding this comment.
Nevermind. Found it. Uh...it makes it clear what it's for.
Better a trivial doc comment than no doc comment. This is a public API.
Not sure where you're going with the $String thing...
69d86d8 to
2eb9284
Compare
Allows `Iterable`, `List`, and `Map` to be implemented as helpers Allow rename and reorganize public libraries.
Reorganize libraries so there is one clear import for each use case.
Support nesting in
TypeHelper.Cleanup the API for
TypeHelperOther misc