Draco-lang / Language-suggestions

Collecting ideas for a new .NET language that could replace C#
75 stars 5 forks source link

Compiler tooling CLI #57

Open WhiteBlackGoose opened 2 years ago

WhiteBlackGoose commented 2 years ago

This is just an extension of #46 idea.

echo "val list = List<int>(1, 2, 3); print(list);" > myCode.fr

dotnet run

- Error 1: "int" not found in line 1. Did you mean "int32"?
- If that's what you meant, apply with `dotnet apply 1`

dotnet apply 1

+ OK: Changed "int" in line 1 to "int32"

dotnet run

+ [1, 2, 3]
LPeter1997 commented 2 years ago

This is essentially bringing compiler suggestions to the CLI. I believe this would bring our attention to the compiler API to be more clean and reusable. I like it.

WhiteBlackGoose commented 2 years ago

I don't know if some other compilers do it, but that's definitely a differentiating factor