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

consider supporting default values (simple or expressions) in primitive operations #174

Open
abstratt opened this issue Nov 26, 2019 · 0 comments

Comments

@abstratt
Copy link
Owner

abstratt commented Nov 26, 2019

For instance:

class String specializes Primitive
  query isEmpty() : Boolean;
  query size() : Integer;
  query add(s : String[0,1] := "") : String;
  query add(s : any[0,1] := "") : String;
  query substring(start : Integer[1] := 0,stop : Integer[1] := { self.size() }) : String;
  query toLower() : String;
  query toUpper() : String;
  query contains(another : String[1] := "") : Boolean;
end;

@abstratt abstratt changed the title primitive operations should return required values consider support default values (simple or expressions) in primitive operations Nov 26, 2019
@abstratt abstratt changed the title consider support default values (simple or expressions) in primitive operations consider supporting default values (simple or expressions) in primitive operations Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@abstratt and others