Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expressions #41

Closed
Lartu opened this issue Apr 7, 2019 · 2 comments
Closed

Expressions #41

Lartu opened this issue Apr 7, 2019 · 2 comments
Labels
enhancement Make a feature we already have better

Comments

@Lartu
Copy link
Owner

Lartu commented Apr 7, 2019

LDPL should really support expressions. It's very cumbersome to have to use

MULTIPLY someVar BY someConstant IN temp_var
ADD initialValue TO temp_var in TEMP_var

to do initialValue + someVar * someConstant. Given that LDPL compiles to C++, adding expressions to the language should be fairly easy. I'm not saying that IF statements or WHILE statements should support them (it would be nice, though), I'm saying that there should be some statement like

IN var SOLVE EXPRESSION initialValue + someVar * someConstant
@xvxx
Copy link
Collaborator

xvxx commented Apr 9, 2019

Maybe IN var SOLVE MATH initialValue + someVar * someConstant? Since EXPRESSION is kind of ambiguous in programming languages? But maybe that's just because I'm a bad math student !

@Lartu
Copy link
Owner Author

Lartu commented Apr 9, 2019

That would be fine as well, yes! I think that's even clearer haha

@Lartu Lartu added this to the LDPL 3.0.5 milestone Apr 25, 2019
@Lartu Lartu added the enhancement Make a feature we already have better label Apr 25, 2019
@Lartu Lartu closed this as completed Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make a feature we already have better
Projects
None yet
Development

No branches or pull requests

2 participants