Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Change type parsing to be a bit cleaner #39

@alexdovzhanyn

Description

@alexdovzhanyn

Currently types get parsed when they are written like so:

x<Function<Number, Number, Number>> = () -> ...

this works fine, but I think we should change the type declaration syntax to be a bit easier to read. It would be preferable to write type declarations like so:

x: Function<Number, Number, Number> = () -> ...

This is a little clearer as to what is the variable and what is the type.

  • [] Update the parser to correctly parse type declarations in the new format
  • [] Update all of the lexer, parser, typechecker, and codegen tests to use the new type declaration format. The logic of the tests themselves should not need to be updated.

Metadata

Metadata

Labels

enhancementNew feature or requestgood first issueGood for newcomershacktoberfestA good issue to work on for Hacktoberfesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions