Skip to content

Add support for operand function types#48

Merged
sbenedicadb merged 6 commits intoadobe:dev-v1.1.0from
sbenedicadb:dev-v1.0.2
Oct 4, 2021
Merged

Add support for operand function types#48
sbenedicadb merged 6 commits intoadobe:dev-v1.1.0from
sbenedicadb:dev-v1.0.2

Conversation

@sbenedicadb
Copy link
Copy Markdown
Member

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 1, 2021

Codecov Report

Merging #48 (a1b447c) into dev-v1.1.0 (39a1d78) will decrease coverage by 0.22%.
The diff coverage is 87.50%.

❗ Current head a1b447c differs from pull request most recent head dcefc59. Consider uploading reports for the commit dcefc59 to get more accurate results

@@              Coverage Diff               @@
##           dev-v1.1.0      #48      +/-   ##
==============================================
- Coverage       95.92%   95.70%   -0.22%     
==============================================
  Files              17       17              
  Lines             343      349       +6     
==============================================
+ Hits              329      334       +5     
- Misses             14       15       +1     

case none
case some(T)
case token(MustacheToken)
case function(() -> T)
Copy link
Copy Markdown
Contributor

@yangyansong-adbe yangyansong-adbe Oct 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RulesEngine users can mix it up with another function case for MustachToken enum. Can we consider renaming it to computation?

case let .token(mustache):
return "<Token: \(mustache)>"
case let .function(fun):
return "<Function: \(String(describing: fun.self))"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a > to the end of the string?

@sbenedicadb sbenedicadb merged commit f08ae2a into adobe:dev-v1.1.0 Oct 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants