Comments (3)
@jaredoconnell another thought: the ArcaflowFunctionSchema
declares its input schema. However, I think it would be better to change this to an interface, which looks like this:
type ArcaflowFunctionSchema interface {
// InputSchemaHint gives one or more valid input types the function can accept. This is for documentation purposes only, but when run against CanAcceptInput or OutputSchema, must result in a valid result.
InputSchemaHints() []schema.Type
// CanAcceptInput lets a function determine if it can accept a certain input.
CanAcceptInput(schema.Type) bool
// OutputSchema produces an output schema given an input schema.
OutputSchema(schema.Type) (schema.Type, error)
}
Accordingly, we may change the ArcaflowFunction to not have generic types and accept an any
as input and produce an any as output. This will make functions more flexible.
from arcaflow-expressions.
@jaredoconnell Isn't this closed with #16 ?
from arcaflow-expressions.
Yes. This is out of sync with JIRA.
from arcaflow-expressions.
Related Issues (11)
- Reduce Redundancy in bracketAccessorDependencies
- Binary Comparison Operators HOT 4
- Replace code with new assertion
- Enable and Address Linters
- Mathematical Expressions HOT 3
- Refactor parseFunctionArgs and parseArgs HOT 1
- List concatenation
- Refactor to use Visitor Pattern HOT 1
- Bad error message when a property is not found
- Unhelpful error message when parsing invalid expression
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcaflow-expressions.