I-Language-Development / I-language-rust

The I programming language is a high level programming language written in rust.
https://i-language-rust.readthedocs.io/en/latest/
MIT License
11 stars 2 forks source link

[ENHANCEMENT] Remove `function` and `->` #121

Closed ElBe-Plaq closed 8 months ago

ElBe-Plaq commented 8 months ago

Is your request related to a problem? Please describe. The current syntax uses a keyword (function) which may also be a common function name. Also, the -> operator is used.

Describe the solution you'd like Remove the function keyword and the -> operator and replace it with the type-name function-name syntax.

Example: function test() becomes void test()

Describe alternatives you've considered Keep the current syntax which would make work easier for people coming from more "simple", functional languages like Rust or Gleam (which both are huge inspirations for this project).

Additional context There have been multiple polls made about this on our discord server.

  1. 12/27/2024 (Current syntax won by one vote)
  2. 03/05/2024 (New syntax won by six votes)
create-issue-branch[bot] commented 8 months ago

Branch issue-121 created!