JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Change stateless to pure #103

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

modified README to showcase #102 (yet to be implemented) modified README to showcase #101 (to be implemented in type check) modified README to showcase #104 (yet to be implemented)

Summary

Change the stateless keyword to pure, since it now denotes pure functions.

Also, use the new notation where property access is done using dot notation. Postfix notation, for the sake of readability, can only be done when passing arguments to functions.

codecov[bot] commented 5 years ago

Codecov Report

Merging #103 into master will decrease coverage by <.01%. The diff coverage is 98.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
- Coverage   83.62%   83.61%   -0.01%     
==========================================
  Files          63       63              
  Lines        4237     4235       -2     
==========================================
- Hits         3543     3541       -2     
  Misses        694      694
Impacted Files Coverage Ξ”
tests/parser/valid/definition.rs 90.99% <100%> (-0.05%) :arrow_down:
src/lexer/mod.rs 96.95% <100%> (ΓΈ) :arrow_up:
src/lexer/token.rs 89% <100%> (ΓΈ) :arrow_up:
src/parser/file.rs 86.3% <100%> (ΓΈ) :arrow_up:
tests/desugar/definition.rs 87.25% <100%> (ΓΈ) :arrow_up:
tests/parser/valid/expression_and_statement.rs 85.46% <100%> (ΓΈ) :arrow_up:
src/parser/definition.rs 86.36% <100%> (-0.09%) :arrow_down:
src/parser/ast.rs 24.82% <85.71%> (ΓΈ) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update fcd291b...20838c5. Read the comment docs.