Comments (1)
I am not happy about this, I would like fraction to be a standard library class without any specific support or special handling in the compiler. What would be possible without any additional support is allowing this
x := fraction<i64> 1
or
x := fraction (i64 1)
All we would need for this is to add a feature declaration as follows
fraction<T: integer<T>>(num T) => num ⁄ num.one
Do you think this would be good?
from fuzion.
Related Issues (20)
- cannot define a feature called set HOT 3
- type.equality features and generic types HOT 1
- lib/bitset: equality broken
- Changes required for language server HOT 1
- cleanup Clazzes.java
- priority of ≟ HOT 1
- replace: Errors.count() > 0 by Errors.any()
- strange errors with lambdas HOT 1
- using `this` instance in feature that inherits from `this-ed`-feature leads to confusion of types HOT 1
- windows, clang: thread-local storage is not supported for the current target HOT 1
- require-condition3 failed: dev.flang.ast.Match:<init>:96 HOT 1
- map: feature to drop elements HOT 1
- type inference, assigning to choice involving generics HOT 1
- type inference: outer expression type should have impact on inner expression type HOT 1
- index error messages HOT 3
- stream: forAll vs ∀ HOT 3
- list: remove forceHead? HOT 4
- lib: introduce a unit monoid? HOT 2
- windows use cr/lf or lf as well HOT 1
- base library: string manipulation HOT 1
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 fuzion.