flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Toots 🦣
Toots 🦣
2023-09-15
The Fuzion September news, a little late since we are so busy:The biggest change: We have an experimental JVM bytecode backend!All the details:https://flang.dev/news/news_030
2023-08-08
More on the Fuzion language, more examples, idioms, a tutorial, design background can be found at https://flang.dev…8/8.
2023-08-08
Finally, we could just leave out the type. In this case, the type is inferred from the actual arguments given in the call, u16 in this example. This version is not type parametric. Leaving out the type should be used only for local functions where the type is obvious.…7/8…
2023-08-08
Using numeric as the constraint, we can now apply this function as well to floats, fractions, complex numbers and any other type that inherits from numeric.…6/8…
2023-08-08
Here, we use this with Fuzion's unlimited integer type int.But we can still be more permissive and permit not only integer types, but any numeric types:…5/8…
2023-08-08
Here, we are using a type parameter. Its name is _ which is used when a name is not needed since there is no other reference to it. But we need a type constraint that allows us to use operation like infix *, we use integer to permit any integer type.…4/8…
2023-08-08
We run this function by calling it, e.g., giving 13 as an argument. To show the result, we pass it to the say function.There are other integer types than i32, so it is unsatisfactory to use square on i32 only. We can do better: define a version for any integer type…3/8…
more...
🦣 @fuzion@types.pl